Package apple.uikit

Class UITouch

  • All Implemented Interfaces:
    NSObject

    public class UITouch
    extends NSObject
    API-Since: 2.0
    • Constructor Detail

      • UITouch

        protected UITouch​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static UITouch alloc()
      • allocWithZone

        public static UITouch allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • new_objc

        public static UITouch new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • altitudeAngle

        public double altitudeAngle()
        Altitude angle. Valid only for stylus touch types. Zero radians indicates that the stylus is parallel to the screen surface, while M_PI/2 radians indicates that it is normal to the screen surface. API-Since: 9.1
      • azimuthAngleInView

        public double azimuthAngleInView​(@Nullable
                                         @Nullable UIView view)
        Azimuth angle. Valid only for stylus touch types. Zero radians points along the positive X axis. Passing a nil for the view parameter will return the azimuth relative to the touch's window. API-Since: 9.1
      • azimuthUnitVectorInView

        public CGVector azimuthUnitVectorInView​(@Nullable
                                                @Nullable UIView view)
        A unit vector that points in the direction of the azimuth angle. Valid only for stylus touch types. Passing nil for the view parameter will return a unit vector relative to the touch's window. API-Since: 9.1
      • estimatedProperties

        public long estimatedProperties()
        A set of properties that has estimated values Only denoting properties that are currently estimated API-Since: 9.1
      • estimatedPropertiesExpectingUpdates

        public long estimatedPropertiesExpectingUpdates()
        A set of properties that expect to have incoming updates in the future. If no updates are expected for an estimated property the current value is our final estimate. This happens e.g. for azimuth/altitude values when entering from the edges API-Since: 9.1
      • estimationUpdateIndex

        @Nullable
        public @Nullable NSNumber estimationUpdateIndex()
        An index which allows you to correlate updates with the original touch. Is only guaranteed non-nil if this UITouch expects or is an update. API-Since: 9.1
      • force

        public double force()
        Force of the touch, where 1.0 represents the force of an average touch API-Since: 9.0
      • locationInNode

        public CGPoint locationInNode​(@NotNull
                                      @NotNull SKNode node)
      • locationInView

        public CGPoint locationInView​(@Nullable
                                      @Nullable UIView view)
      • majorRadius

        public double majorRadius()
        majorRadius and majorRadiusTolerance are in points The majorRadius will be accurate +/- the majorRadiusTolerance API-Since: 8.0
      • majorRadiusTolerance

        public double majorRadiusTolerance()
        API-Since: 8.0
      • maximumPossibleForce

        public double maximumPossibleForce()
        Maximum possible force with this input mechanism API-Since: 9.0
      • phase

        public long phase()
      • preciseLocationInView

        public CGPoint preciseLocationInView​(@Nullable
                                             @Nullable UIView view)
        Use these methods to gain additional precision that may be available from touches. Do not use precise locations for hit testing. A touch may hit test inside a view, yet have a precise location that lies just outside. API-Since: 9.1
      • precisePreviousLocationInView

        public CGPoint precisePreviousLocationInView​(@Nullable
                                                     @Nullable UIView view)
        API-Since: 9.1
      • previousLocationInNode

        public CGPoint previousLocationInNode​(@NotNull
                                              @NotNull SKNode node)
      • previousLocationInView

        public CGPoint previousLocationInView​(@Nullable
                                              @Nullable UIView view)
      • tapCount

        public long tapCount()
        touch down within a certain point within a certain amount of time
      • timestamp

        public double timestamp()
      • type

        public long type()
        API-Since: 9.0
      • view

        @Nullable
        public @Nullable UIView view()
      • window

        @Nullable
        public @Nullable UIWindow window()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.