public class UIGestureRecognizer extends NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
UIGestureRecognizer(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
void |
addTargetAction(java.lang.Object target,
org.moe.natj.objc.SEL action)
add a target/action pair.
|
static UIGestureRecognizer |
alloc() |
static UIGestureRecognizer |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
NSArray<? extends NSNumber> |
allowedPressTypes()
Array of UIPressTypes as NSNumbers.
|
NSArray<? extends NSNumber> |
allowedTouchTypes()
Array of UITouchTypes as NSNumbers.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
long |
buttonMask() |
boolean |
canBePreventedByGestureRecognizer(UIGestureRecognizer preventingGestureRecognizer) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
boolean |
cancelsTouchesInView()
default is YES.
|
boolean |
canPreventGestureRecognizer(UIGestureRecognizer preventedGestureRecognizer)
same behavior as the equivalent delegate methods, but can be used by subclasses to define class-wide prevention rules
for example, a UITapGestureRecognizer never prevents another UITapGestureRecognizer with a higher tap count
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
boolean |
delaysTouchesBegan()
default is NO.
|
boolean |
delaysTouchesEnded()
default is YES.
|
UIGestureRecognizerDelegate |
delegate()
the gesture recognizer's delegate
|
static java.lang.String |
description_static() |
static long |
hash_static() |
void |
ignorePressForEvent(UIPress button,
UIPressesEvent event) |
void |
ignoreTouchForEvent(UITouch touch,
UIEvent event)
if a touch isn't part of this gesture it can be passed to this method to be ignored.
|
UIGestureRecognizer |
init() |
UIGestureRecognizer |
initWithCoder(NSCoder coder) |
UIGestureRecognizer |
initWithTargetAction(java.lang.Object target,
org.moe.natj.objc.SEL action)
designated initializer
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isEnabled()
default is YES.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
CGPoint |
locationInView(UIView view)
a generic single-point location for the gesture.
|
CGPoint |
locationOfTouchInView(long touchIndex,
UIView view)
the location of a particular touch
|
long |
modifierFlags()
Values from the last event processed.
|
java.lang.String |
name()
name for debugging to appear in logging
|
static UIGestureRecognizer |
new_objc() |
long |
numberOfTouches()
number of touches involved for which locations can be queried
|
void |
pressesBeganWithEvent(NSSet<? extends UIPress> presses,
UIPressesEvent event) |
void |
pressesCancelledWithEvent(NSSet<? extends UIPress> presses,
UIPressesEvent event) |
void |
pressesChangedWithEvent(NSSet<? extends UIPress> presses,
UIPressesEvent event) |
void |
pressesEndedWithEvent(NSSet<? extends UIPress> presses,
UIPressesEvent event) |
void |
removeTargetAction(java.lang.Object target,
org.moe.natj.objc.SEL action)
remove the specified target/action pair.
|
void |
requireGestureRecognizerToFail(UIGestureRecognizer otherGestureRecognizer)
create a relationship with another gesture recognizer that will prevent this gesture's actions from being called until otherGestureRecognizer transitions to UIGestureRecognizerStateFailed
if otherGestureRecognizer transitions to UIGestureRecognizerStateRecognized or UIGestureRecognizerStateBegan then this recognizer will instead transition to UIGestureRecognizerStateFailed
example usage: a single tap may require a double tap to fail
|
boolean |
requiresExclusiveTouchType()
defaults to YES
|
void |
reset()
called automatically by the runtime after the gesture state has been set to UIGestureRecognizerStateEnded
any internal state should be reset to prepare for a new attempt to recognize the gesture
after this is received all remaining active touches will be ignored (no further updates will be received for touches that had already begun but haven't ended)
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAllowedPressTypes(NSArray<? extends NSNumber> value)
Array of UIPressTypes as NSNumbers.
|
void |
setAllowedTouchTypes(NSArray<? extends NSNumber> value)
Array of UITouchTypes as NSNumbers.
|
void |
setCancelsTouchesInView(boolean value)
default is YES.
|
void |
setDelaysTouchesBegan(boolean value)
default is NO.
|
void |
setDelaysTouchesEnded(boolean value)
default is YES.
|
void |
setDelegate_unsafe(UIGestureRecognizerDelegate value)
the gesture recognizer's delegate
|
void |
setDelegate(UIGestureRecognizerDelegate value)
the gesture recognizer's delegate
|
void |
setEnabled(boolean value)
default is YES.
|
void |
setName(java.lang.String value)
name for debugging to appear in logging
|
void |
setRequiresExclusiveTouchType(boolean value)
defaults to YES
|
void |
setState(long value)
the current state of the gesture recognizer.
|
static void |
setVersion_static(long aVersion) |
boolean |
shouldBeRequiredToFailByGestureRecognizer(UIGestureRecognizer otherGestureRecognizer) |
boolean |
shouldReceiveEvent(UIEvent event)
same behavior as the equivalent delegate method
|
boolean |
shouldRequireFailureOfGestureRecognizer(UIGestureRecognizer otherGestureRecognizer)
same behavior as the equivalent delegate methods, but can be used by subclasses to define class-wide failure requirements
|
long |
state()
the current state of the gesture recognizer
|
static org.moe.natj.objc.Class |
superclass_static() |
void |
touchesBeganWithEvent(NSSet<? extends UITouch> touches,
UIEvent event)
mirror of the touch-delivery methods on UIResponder
UIGestureRecognizers aren't in the responder chain, but observe touches hit-tested to their view and their view's subviews
UIGestureRecognizers receive touches before the view to which the touch was hit-tested
|
void |
touchesCancelledWithEvent(NSSet<? extends UITouch> touches,
UIEvent event) |
void |
touchesEndedWithEvent(NSSet<? extends UITouch> touches,
UIEvent event) |
void |
touchesEstimatedPropertiesUpdated(NSSet<? extends UITouch> touches) |
void |
touchesMovedWithEvent(NSSet<? extends UITouch> touches,
UIEvent event) |
static long |
version_static() |
UIView |
view()
the view the gesture is attached to.
|
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected UIGestureRecognizer(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static UIGestureRecognizer alloc()
public static UIGestureRecognizer allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static UIGestureRecognizer new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public void addTargetAction(java.lang.Object target,
org.moe.natj.objc.SEL action)
public NSArray<? extends NSNumber> allowedPressTypes()
public NSArray<? extends NSNumber> allowedTouchTypes()
public boolean cancelsTouchesInView()
public boolean delaysTouchesBegan()
public boolean delaysTouchesEnded()
public UIGestureRecognizerDelegate delegate()
public UIGestureRecognizer init()
public UIGestureRecognizer initWithTargetAction(java.lang.Object target, org.moe.natj.objc.SEL action)
public boolean isEnabled()
public void setEnabled(boolean value)
public CGPoint locationInView(UIView view)
public CGPoint locationOfTouchInView(long touchIndex, UIView view)
public long numberOfTouches()
public void removeTargetAction(java.lang.Object target,
org.moe.natj.objc.SEL action)
public void requireGestureRecognizerToFail(UIGestureRecognizer otherGestureRecognizer)
public boolean requiresExclusiveTouchType()
public void setAllowedPressTypes(NSArray<? extends NSNumber> value)
public void setAllowedTouchTypes(NSArray<? extends NSNumber> value)
public void setCancelsTouchesInView(boolean value)
public void setDelaysTouchesBegan(boolean value)
public void setDelaysTouchesEnded(boolean value)
public void setDelegate_unsafe(UIGestureRecognizerDelegate value)
public void setDelegate(UIGestureRecognizerDelegate value)
public void setRequiresExclusiveTouchType(boolean value)
public long state()
public UIView view()
public java.lang.String name()
public void setName(java.lang.String value)
public boolean canBePreventedByGestureRecognizer(UIGestureRecognizer preventingGestureRecognizer)
public boolean canPreventGestureRecognizer(UIGestureRecognizer preventedGestureRecognizer)
public void ignorePressForEvent(UIPress button, UIPressesEvent event)
public void ignoreTouchForEvent(UITouch touch, UIEvent event)
public UIGestureRecognizer initWithCoder(NSCoder coder)
public void pressesBeganWithEvent(NSSet<? extends UIPress> presses, UIPressesEvent event)
public void pressesCancelledWithEvent(NSSet<? extends UIPress> presses, UIPressesEvent event)
public void pressesChangedWithEvent(NSSet<? extends UIPress> presses, UIPressesEvent event)
public void pressesEndedWithEvent(NSSet<? extends UIPress> presses, UIPressesEvent event)
public void reset()
public void setState(long value)
public boolean shouldBeRequiredToFailByGestureRecognizer(UIGestureRecognizer otherGestureRecognizer)
public boolean shouldRequireFailureOfGestureRecognizer(UIGestureRecognizer otherGestureRecognizer)
public void touchesBeganWithEvent(NSSet<? extends UITouch> touches, UIEvent event)
public void touchesCancelledWithEvent(NSSet<? extends UITouch> touches, UIEvent event)
public void touchesEndedWithEvent(NSSet<? extends UITouch> touches, UIEvent event)
public void touchesEstimatedPropertiesUpdated(NSSet<? extends UITouch> touches)
public void touchesMovedWithEvent(NSSet<? extends UITouch> touches, UIEvent event)
public long buttonMask()
public long modifierFlags()
public boolean shouldReceiveEvent(UIEvent event)