UIPageViewController.SetViewControllersAsync Method

Definition

Sets the UIViewControllers to be displayed.

public virtual System.Threading.Tasks.Task<bool> SetViewControllersAsync (UIKit.UIViewController[] viewControllers, UIKit.UIPageViewControllerNavigationDirection direction, bool animated);
abstract member SetViewControllersAsync : UIKit.UIViewController[] * UIKit.UIPageViewControllerNavigationDirection * bool -> System.Threading.Tasks.Task<bool>
override this.SetViewControllersAsync : UIKit.UIViewController[] * UIKit.UIPageViewControllerNavigationDirection * bool -> System.Threading.Tasks.Task<bool>

Parameters

viewControllers
UIViewController[]
animated
Boolean

Returns

A task that represents the asynchronous SetViewControllers operation. The value of the TResult parameter is a UICompletionHandler.

Remarks

The SetViewControllersAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to