public abstract class UIResponder extends NSObject
Constructor and Description |
---|
UIResponder() |
Modifier and Type | Method and Description |
---|---|
boolean |
becomeFirstResponder()
Returns a Boolean that shows whether this UIResponder accepts to change
its status to first responder.
|
boolean |
isFirstResponder()
Returns a Boolean that shows whether this responder is the first
responder.
|
UIResponder |
nextResponder()
Returns the next responder of the response chain.
|
boolean |
resignFirstResponder()
Returns a Boolean that shows whether this UIResponder accepts to resign
its status as first responder.
|
void |
touchesBegan(Set<UITouch> touches,
UIEvent event)
Sent to this responder when one or more fingers touched the screen.
|
void |
touchesCancelled(Set<UITouch> touches,
UIEvent event)
Sent to this responder when touch event has been canceled.
|
void |
touchesEnded(Set<UITouch> touches,
UIEvent event)
Sent to this responder when one or more fingers were lifted from the
screen.
|
void |
touchesMoved(Set<UITouch> touches,
UIEvent event)
Sent to this responder when one or more fingers move on the screen.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public void touchesBegan(Set<UITouch> touches, UIEvent event)
touches
- The set touches to which the touch or touches belongs.event
- The event to which the touches belong.public void touchesMoved(Set<UITouch> touches, UIEvent event)
touches
- The set touches to which the touch or touches belongs.event
- The event to which the touches belong.public void touchesEnded(Set<UITouch> touches, UIEvent event)
touches
- The set touches to which the touch or touches belongs.event
- The event to which the touches belong.public void touchesCancelled(Set<UITouch> touches, UIEvent event)
touches
- The set touches to which the touch belongs.event
- The event to which the touches belong.public UIResponder nextResponder()
public boolean resignFirstResponder()
public boolean becomeFirstResponder()
public boolean isFirstResponder()
Copyright © 2020. All rights reserved.