Contents

requestViewController(completionHandler:)

Requests an audio unit’s custom view controller.

Declaration

func requestViewController(completionHandler: @escaping  @Sendable (UIViewController?) -> Void)
func requestViewController() async -> UIViewController?
func requestViewController(completionHandler: @escaping  @Sendable (NSViewController?) -> Void)
func requestViewController() async -> NSViewController?

Mentioned in

Discussion

The completion handler is called on a thread or dispatch queue internal to the audio unit’s implementation. If the audio unit does not implement a custom view controller, it returns nil. If it has a custom view controller, it instantiates the view controller and returns it. The custom view controller must be a subclass of AUViewController.