UIPress.Force UIPress.Force Property

Definition

Represents the force of the press in the range 0 to 1.

[get: Foundation.Export("force")]
public virtual nfloat Force { get; }
member this.Force : nfloat

Property Value

0 indicates a minimal press, 1 a forceful press.

Remarks

Digital buttons will set this value as either 0 or 1.

Developers should use TraitCollection.ForceTouchCapability == UIForceTouchCapability.Available to determine if the device in question is acting as a digital or analog button.

Applies to