Instance Method

requestViewControllerWithCompletionHandler:

Requests an audio unit's custom view controller.

Declaration

- (void)requestViewControllerWithCompletionHandler:(void (^)(AUViewControllerBase *viewController))completionHandler;

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.

See Also

Required Methods

- createAudioUnitWithComponentDescription:error:

Creates an instance of an extension’s audio unit.

Required.