Package org.robovm.apple.uikit
Class UIGestureRecognizer
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIGestureRecognizer
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
UILongPressGestureRecognizer
,UIPanGestureRecognizer
,UIPinchGestureRecognizer
,UIRotationGestureRecognizer
,UISwipeGestureRecognizer
,UITapGestureRecognizer
public class UIGestureRecognizer extends NSObject
- Since:
- Available in iOS 3.2 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
UIGestureRecognizer.OnGestureListener
static class
UIGestureRecognizer.UIGestureRecognizerPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UIGestureRecognizer()
protected
UIGestureRecognizer(NSObject.Handle h, long handle)
protected
UIGestureRecognizer(NSObject.SkipInit skipInit)
UIGestureRecognizer(NSObject target, org.robovm.objc.Selector action)
UIGestureRecognizer(UIGestureRecognizer.OnGestureListener listener)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
UIGestureRecognizer
public UIGestureRecognizer(UIGestureRecognizer.OnGestureListener listener)
-
UIGestureRecognizer
public UIGestureRecognizer()
-
UIGestureRecognizer
protected UIGestureRecognizer(NSObject.Handle h, long handle)
-
UIGestureRecognizer
protected UIGestureRecognizer(NSObject.SkipInit skipInit)
-
UIGestureRecognizer
public UIGestureRecognizer(NSObject target, org.robovm.objc.Selector action)
-
-
Method Detail
-
addListener
public void addListener(UIGestureRecognizer.OnGestureListener listener)
-
removeListener
public void removeListener(UIGestureRecognizer.OnGestureListener listener)
-
getState
public UIGestureRecognizerState getState()
-
getDelegate
public UIGestureRecognizerDelegate getDelegate()
-
setDelegate
public void setDelegate(UIGestureRecognizerDelegate v)
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean v)
-
getView
public UIView getView()
-
cancelsTouchesInView
public boolean cancelsTouchesInView()
-
setCancelsTouchesInView
public void setCancelsTouchesInView(boolean v)
-
delaysTouchesBegan
public boolean delaysTouchesBegan()
-
setDelaysTouchesBegan
public void setDelaysTouchesBegan(boolean v)
-
delaysTouchesEnded
public boolean delaysTouchesEnded()
-
setDelaysTouchesEnded
public void setDelaysTouchesEnded(boolean v)
-
getAllowedTouchTypes
public java.util.List<UITouchType> getAllowedTouchTypes()
- Since:
- Available in iOS 9.0 and later.
-
setAllowedTouchTypes
public void setAllowedTouchTypes(java.util.List<UITouchType> v)
- Since:
- Available in iOS 9.0 and later.
-
getAllowedPressTypes
public java.util.List<UIPressType> getAllowedPressTypes()
- Since:
- Available in iOS 9.0 and later.
-
setAllowedPressTypes
public void setAllowedPressTypes(java.util.List<UIPressType> v)
- Since:
- Available in iOS 9.0 and later.
-
requiresExclusiveTouchType
public boolean requiresExclusiveTouchType()
- Since:
- Available in iOS 9.2 and later.
-
setRequiresExclusiveTouchType
public void setRequiresExclusiveTouchType(boolean v)
- Since:
- Available in iOS 9.2 and later.
-
getNumberOfTouches
public long getNumberOfTouches()
-
getName
public java.lang.String getName()
- Since:
- Available in iOS 11.0 and later.
-
setName
public void setName(java.lang.String v)
- Since:
- Available in iOS 11.0 and later.
-
setState
public void setState(UIGestureRecognizerState v)
-
init
protected long init(NSObject target, org.robovm.objc.Selector action)
-
addTarget
public void addTarget(NSObject target, org.robovm.objc.Selector action)
-
removeTarget
public void removeTarget(NSObject target, org.robovm.objc.Selector action)
-
requireGestureRecognizerToFail
public void requireGestureRecognizerToFail(UIGestureRecognizer otherGestureRecognizer)
-
ignorePress
protected void ignorePress(UIPress button, UIPressesEvent event)
- Since:
- Available in iOS 9.0 and later.
-
reset
public void reset()
-
canPreventGestureRecognizer
public boolean canPreventGestureRecognizer(UIGestureRecognizer preventedGestureRecognizer)
-
canBePreventedByGestureRecognizer
public boolean canBePreventedByGestureRecognizer(UIGestureRecognizer preventingGestureRecognizer)
-
shouldRequireFailureOfGestureRecognizer
public boolean shouldRequireFailureOfGestureRecognizer(UIGestureRecognizer otherGestureRecognizer)
- Since:
- Available in iOS 7.0 and later.
-
shouldBeRequiredToFailByGestureRecognizer
public boolean shouldBeRequiredToFailByGestureRecognizer(UIGestureRecognizer otherGestureRecognizer)
- Since:
- Available in iOS 7.0 and later.
-
touchesEstimatedPropertiesUpdated
public void touchesEstimatedPropertiesUpdated(NSSet<UITouch> touches)
- Since:
- Available in iOS 9.1 and later.
-
pressesBegan
protected void pressesBegan(NSSet<UIPress> presses, UIPressesEvent event)
- Since:
- Available in iOS 9.0 and later.
-
pressesChanged
protected void pressesChanged(NSSet<UIPress> presses, UIPressesEvent event)
- Since:
- Available in iOS 9.0 and later.
-
pressesEnded
protected void pressesEnded(NSSet<UIPress> presses, UIPressesEvent event)
- Since:
- Available in iOS 9.0 and later.
-
pressesCancelled
protected void pressesCancelled(NSSet<UIPress> presses, UIPressesEvent event)
- Since:
- Available in iOS 9.0 and later.
-
-