requestMicrophoneInjectionPermission(completionHandler:)
Requests the app’s permission to add audio to calls.
Declaration
class func requestMicrophoneInjectionPermission(completionHandler response: @escaping @Sendable (AVAudioApplication.MicrophoneInjectionPermission) -> Void)class func requestMicrophoneInjectionPermission() async -> AVAudioApplication.MicrophoneInjectionPermissionDiscussion
The system immediately returns a response if a person has already granted or denied the app permission, or if the service is in a disabled state. Otherwise, it presents a dialog to request permission and returns a result when a person dismisses the UI.