UIViewController.PresentViewControllerAsync(UIViewController, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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