iOS Guides | Samples

UIKit.UIView.UserInteractionEnabled Property

Determines whether input events are processed by this view.

Syntax

[get: Foundation.Export("isUserInteractionEnabled")]
[set: Foundation.Export("setUserInteractionEnabled:")]
public virtual Boolean UserInteractionEnabled { get; set; }

Value

Remarks

This property is used to control whether input events are delivered to the view. By default all views receive events.

During animations, UIKit will disable event delivery to your view unless you pass the UIKit.UIViewAnimationOptions.AllowUserInteraction flag to your animation function.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0