Class UITouch

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class UITouch
extends NSObject
  • Constructor Details

  • Method Details

    • getTimestamp

      public double getTimestamp()
    • getPhase

      public UITouchPhase getPhase()
    • getTapCount

      public long getTapCount()
    • getType

      public UITouchType getType()
      Since:
      Available in iOS 9.0 and later.
    • getMajorRadius

      public double getMajorRadius()
    • getMajorRadiusTolerance

      public double getMajorRadiusTolerance()
    • getWindow

      public UIWindow getWindow()
    • getView

      public UIView getView()
    • getGestureRecognizers

      public NSArray<UIGestureRecognizer> getGestureRecognizers()
    • getForce

      public double getForce()
      Since:
      Available in iOS 9.0 and later.
    • getMaximumPossibleForce

      public double getMaximumPossibleForce()
      Since:
      Available in iOS 9.0 and later.
    • getAltitudeAngle

      public double getAltitudeAngle()
      Since:
      Available in iOS 9.1 and later.
    • getEstimationUpdateIndex

      public NSNumber getEstimationUpdateIndex()
      Since:
      Available in iOS 9.1 and later.
    • getEstimatedProperties

      public UITouchProperties getEstimatedProperties()
      Since:
      Available in iOS 9.1 and later.
    • getEstimatedPropertiesExpectingUpdates

      public UITouchProperties getEstimatedPropertiesExpectingUpdates()
      Since:
      Available in iOS 9.1 and later.
    • getLocationInNode

      public CGPoint getLocationInNode​(SKNode node)
    • getPreviousLocationInNode

      public CGPoint getPreviousLocationInNode​(SKNode node)
    • getLocationInView

      public CGPoint getLocationInView​(UIView view)
    • getPreviousLocationInView

      public CGPoint getPreviousLocationInView​(UIView view)
    • getPreciseLocationInView

      public CGPoint getPreciseLocationInView​(UIView view)
      Since:
      Available in iOS 9.1 and later.
    • getPrecisePreviousLocationInView

      public CGPoint getPrecisePreviousLocationInView​(UIView view)
      Since:
      Available in iOS 9.1 and later.
    • getAzimuthAngleInView

      public double getAzimuthAngleInView​(UIView view)
      Since:
      Available in iOS 9.1 and later.
    • getAzimuthUnitVectorInView

      public CGVector getAzimuthUnitVectorInView​(UIView view)
      Since:
      Available in iOS 9.1 and later.