Share via


AUAudioUnit.RequestViewControllerAsync Method

Definition

Asynchronously requests the view controller for the audio unit.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<UIKit.UIViewController> RequestViewControllerAsync();
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<AppKit.NSViewController> RequestViewControllerAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RequestViewControllerAsync : unit -> System.Threading.Tasks.Task<UIKit.UIViewController>
override this.RequestViewControllerAsync : unit -> System.Threading.Tasks.Task<UIKit.UIViewController>
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RequestViewControllerAsync : unit -> System.Threading.Tasks.Task<AppKit.NSViewController>
override this.RequestViewControllerAsync : unit -> System.Threading.Tasks.Task<AppKit.NSViewController>

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