Enumerates the phases of the button-press life-cycle.
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)] public enum UIPressPhase
type UIPressPhase =
The initial state of a button. Indicates that a press has begun.
Indicates that the system has canceled tracking of this button-press sequence.
Indicates that either the location of the button press or it's Force has changed.
Indicates that the button has been released.
Indicates that the button is still down, with the same location and force as previously.
UIPress objects model not just digital presses but, for instance, trackpads, so a UIPress may have both location and force data. Additionally, the system may cancel tracking of a button press at any time. This leads to the following state-machine: