Upravit

Sdílet prostřednictvím


UITouchProperties Enum

Definition

A flagging enumeration of the properties of a UITouch that may change.

This enumeration supports a bitwise combination of its member values.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 1, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UITouchProperties
type UITouchProperties = 
Inheritance
UITouchProperties
Attributes

Fields

Name Value Description
Force 1

The device allows for the possibility that the Force will vary over the course of a touch.

Azimuth 2

The device allows for the possibility that the GetAzimuthAngle(UIView) and GetAzimuthUnitVector(UIView) will vary over the course of a touch.

Altitude 4

The device allows for the possibility that the AltitudeAngle will vary over the course of a touch.

Location 8

The device allows for the possibility that the LocationInView(UIView) will vary over the course of a touch.

Remarks

Different hardware devices have different capabilities that can vary over the duration of a touch. For instance, all current hardware allows the Location property to vary, but only the Apple Pencil currently supports the Altitude and Azimuth values to change over the course of a touch.

Applies to