UIKit.UIViewController.IsBeingPresented Property
true if the current UIKit.UIViewController is in the process of being presented.

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
[get: Foundation.Export("isBeingPresented")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual bool IsBeingPresented { get; }

See Also

UIViewController.ViewWillAppear
UIViewController.ViewDidAppear
UIViewController.IsMovingToParentViewController

Value

true only if called during the execution of UIViewController.ViewWillAppear or UIViewController.ViewDidAppear.

Remarks

The presentation process is bookended by the functions UIViewController.ViewWillAppear and UIViewController.ViewDidAppear. While those are executing, this property will return true, at all other times, it will return false.

Requirements

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