Share via


UIPageViewController.SetViewControllersAsync Method

Definition

Sets the UIViewControllers to be displayed.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<bool> SetViewControllersAsync(UIKit.UIViewController[] viewControllers, UIKit.UIPageViewControllerNavigationDirection direction, bool animated);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.

Attributes

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