Class UIGestureRecognizer

    • Constructor Detail

      • UIGestureRecognizer

        public UIGestureRecognizer()
      • UIGestureRecognizer

        protected UIGestureRecognizer​(NSObject.Handle h,
                                      long handle)
      • UIGestureRecognizer

        public UIGestureRecognizer​(NSObject target,
                                   org.robovm.objc.Selector action)
    • Method Detail

      • 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.
      • 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)
      • getLocationInView

        public CGPoint getLocationInView​(UIView view)
      • getLocationOfTouch

        public CGPoint getLocationOfTouch​(long touchIndex,
                                          UIView view)
      • ignoreTouch

        protected void ignoreTouch​(UITouch touch,
                                   UIEvent event)
      • 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.
      • touchesCancelled

        protected void touchesCancelled​(NSSet<UITouch> touches,
                                        UIEvent event)
      • 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.