AudioOutput
Objective-C
enum AudioOutput : NSInteger {}
Swift
enum AudioOutput : Int, @unchecked Sendable
Constants indicating the sound output.
-
Automatic mode. @details Output on speaker if device is NOT connected to Bluetooth A2DP. Output on Bluetooth A2DP if device is connected to Bluetooth A2DP.
Declaration
Objective-C
AudioOutputAutomatic
Swift
case automatic = 0
-
Output on Bluetooth as phone call. @details Available only for PlaybackAndRecording AudioCategory.
Declaration
Objective-C
AudioOutputBluetoothAsPhoneCall
Swift
case bluetoothAsPhoneCall = 1
-
Output only on speaker. @details Available only for PlaybackAndRecording AudioCategory.
Declaration
Objective-C
AudioOutputSpeakerOnly
Swift
case speakerOnly = 2