Requests an audio unit's custom view controller.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
Framework
- Core Audio Kit
Declaration
func requestViewController(completionHandler: @escaping (UIView Controller?) -> Void)
func requestViewController(completionHandler: @escaping (NSView Controller?) -> Void)
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 AUView
.