UIGestureRecognizer.RequiresExclusiveTouchType UIGestureRecognizer.RequiresExclusiveTouchType Property

Definition

Gets or sets whether the UIGestureRecognizer is only considering a single type of touch.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 9, 1, ObjCRuntime.PlatformArchitecture.All, null)]
[get: Foundation.Export("requiresExclusiveTouchType")]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 9, 1, ObjCRuntime.PlatformArchitecture.All, null)]
[set: Foundation.Export("setRequiresExclusiveTouchType:")]
[set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 9, 1, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool RequiresExclusiveTouchType { get; set; }
member this.RequiresExclusiveTouchType : bool with get, set

Property Value

true indicates the recognizer will ignore new touches that do not match the type of the initial touch.

Applies to