@@ -64,6 +64,29 @@ declare module 'react-native-callkeep' {
6464 selected ?: boolean
6565 }
6666
67+ export enum AudioSessionCategoryOption {
68+ mixWithOthers = 0x1 ,
69+ duckOthers = 0x2 ,
70+ interruptSpokenAudioAndMixWithOthers = 0x11 ,
71+ allowBluetooth = 0x4 ,
72+ allowBluetoothA2DP = 0x20 ,
73+ allowAirPlay = 0x40 ,
74+ defaultToSpeaker = 0x8 ,
75+ overrideMutedMicrophoneInterruption = 0x80 ,
76+ }
77+
78+ export enum AudioSessionMode {
79+ default = 'AVAudioSessionModeDefault' ,
80+ gameChat = 'AVAudioSessionModeGameChat' ,
81+ measurement = 'AVAudioSessionModeMeasurement' ,
82+ moviePlayback = 'AVAudioSessionModeMoviePlayback' ,
83+ spokenAudio = 'AVAudioSessionModeSpokenAudio' ,
84+ videoChat = 'AVAudioSessionModeVideoChat' ,
85+ videoRecording = 'AVAudioSessionModeVideoRecording' ,
86+ voiceChat = 'AVAudioSessionModeVoiceChat' ,
87+ voicePrompt = 'AVAudioSessionModeVoicePrompt' ,
88+ }
89+
6790 interface IOptions {
6891 ios : {
6992 appName : string ,
@@ -73,6 +96,10 @@ declare module 'react-native-callkeep' {
7396 maximumCallsPerCallGroup ?: string ,
7497 ringtoneSound ?: string ,
7598 includesCallsInRecents ?: boolean
99+ audioSession ?: {
100+ categoryOptions ?: AudioSessionCategoryOption | number ,
101+ mode ?: AudioSessionMode | string ,
102+ }
76103 } ,
77104 android : {
78105 alertTitle : string ,
0 commit comments