Bewerken

Delen via


UIView.ExclusiveTouch Property

Definition

Restricts the event delivery to this view.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ExclusiveTouch { [Foundation.Export("isExclusiveTouch")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setExclusiveTouch:")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.ExclusiveTouch : bool with get, set

Property Value

The default value is false.

Attributes

Remarks

When this property is set, if this view starts tracking a touch, no other views in the window will receive these events. Additionally, a view that has set this property to true wont receive any events that are associated with other views in the window.

If a finger touches a view that hast this property set, the event is only delivered if no other view in the window is tracking a finger. If a finger touches a non-exclusive window, the event is only delivered if there are no exclusive views tracking a finger.

Applies to