See Also: UITouch
public class UITouch : NSObject
This object encapsulates a touch or a finger movement on the screen.
- UIResponder.TouchesBegan(NSSet,UIEvent): sent when one or more fingers touch the screen.
- UIResponder.TouchesMoved(NSSet,UIEvent): sent when one or more fingers move.
- UIResponder.TouchesEnded(NSSet,UIEvent): sent when one or more fingers are lifted from the screen.
- UIResponder.TouchesCancelled(NSSet,UIEvent): sent when the touch is cancelled by the system (for example if the phone interrupts your application).
UIViews by default only handle a single touch event at once. If you want your view to handle multiple touches, you must set the UIView.MultipleTouchEnabled to true.
iOS creates a T:UIKit.UIEvent object any time a finger touches the screen, moves or is removed from the screen. The UIEvent encapsulates all of the touches that are taking place on the screen at this point, even those that do not belong to this view. In addition to the UIEvent, there is an NSSet containing UITouch objects that represent the state of each finger on the screen for this particular view.
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0
The members of UIKit.UITouch are listed below.
See Also: NSObject
|Default constructor that initializes a new instance of this class with no parameters.|
|[read-only]||AltitudeAngle||nfloat. The altitude, in radians, above horizontal, of the stylus.|
|ClassHandle||IntPtr. The handle for this class.|
|[read-only]||EstimatedProperties||UITouchProperties. The set of properties that may vary over the course of a touch.|
|[read-only]||EstimatedPropertiesExpectingUpdates||UITouchProperties. The set of properties that are likely to vary over the course of a touch.|
|[read-only]||EstimationUpdateIndex||NSNumber. If not null, a monotonically-increasing index into UITouch objects that have UITouch.EstimatedProperties.|
|[read-only]||Force||nfloat. Gets the force of the touch, where 1.0 represents the system-defined average force.|
|[read-only]||GestureRecognizers||UIGestureRecognizer. The UIGestureRecognizers that are receiving this UITouch.|
|[read-only]||MajorRadius||nfloat. The radius of the touch, governed by the UITouch.MajorRadiusTolerance setting.|
|[read-only]||MajorRadiusTolerance||nfloat. Provides the tolerance for the MajorRadius property. The actual radius is measured by MajorRadius±MajorRadiusTolerance.|
|[read-only]||MaximumPossibleForce||nfloat. Gets the maximum force value that the system will recognize.|
|[read-only]||Phase||UITouchPhase. The UITouchPhase of this UITouch.|
|[read-only]||TapCount||nint. The number of taps associated with this UITouch. Read-only.|
|[read-only]||Timestamp||Double. The time when this UITouch was created or last mutated. Read-only.|
|[read-only]||Type||UITouchType. The UITouchType of the UITouch.|
|[read-only]||View||UIView. The UIView in which this UITouch occurred. Read-only.|
|[read-only]||Window||UIWindow. The UIWindow in which this UITouch occurred. Read-only.|
Returns the rotation of the stylus relative to the plane of the screen, in radians.
Returns the rotation of the pointing device relative to the plane of the screen, as a unit vector.
Returns a precise location for the UITouch.
Returns the UITouch object's previous precise location.
The location of this UITouch, in the coordinate system of the specified UIView.
The previous location of this UITouch, in the coordinate system of the specified UIView.