Modifier

Partager via


AUAudioUnit.RequestViewControllerAsync Method

Definition

Asynchronously requests the view controller for the audio unit.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<UIKit.UIViewController> RequestViewControllerAsync ();
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<UIKit.UIViewController> RequestViewControllerAsync ();
abstract member RequestViewControllerAsync : unit -> System.Threading.Tasks.Task<UIKit.UIViewController>
override this.RequestViewControllerAsync : unit -> System.Threading.Tasks.Task<UIKit.UIViewController>

Returns

A task that represents the asynchronous RequestViewController operation. The result is of type System.Threading.Tasks.Task<AppKit.NSViewController> on MacOS and System.Threading.Tasks.Task<AppKit.UIViewController> on iOS.

Attributes

Remarks

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

Applies to