Edit

Share via


UIViewController.PresentViewControllerAsync(UIViewController, Boolean) Method

Definition

Modally presents a view controller.

public virtual System.Threading.Tasks.Task PresentViewControllerAsync (UIKit.UIViewController viewControllerToPresent, bool animated);
abstract member PresentViewControllerAsync : UIKit.UIViewController * bool -> System.Threading.Tasks.Task
override this.PresentViewControllerAsync : UIKit.UIViewController * bool -> System.Threading.Tasks.Task

Parameters

viewControllerToPresent
UIViewController

View controller that displays over the current view controller content.

animated
Boolean

Boolean indicating whether to animate presentation or not.

Returns

A task that represents the asynchronous PresentViewController operation

Applies to