Skip to content

Commit ebecfec

Browse files
📝 Update didChangeAudioRoute documentation
Based on the code in `android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java` and `ios/RNCallKeep/RNCallKeep.m`
1 parent 4b1fa98 commit ebecfec

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -845,20 +845,24 @@ RNCallKeep.addEventListener('didToggleHoldCallAction', ({ hold, callUUID }) => {
845845
});
846846
```
847847

848+
- `hold` (boolean)
849+
- `callUUID` (string)
850+
- The UUID of the call.
851+
848852
### - didChangeAudioRoute
849853

850854
Triggered when the audio route has been changed.
851-
⚠️ Will send `Speaker` on iOS but `SPEAKER` on Android.
852855

853856
```js
854857
RNCallKeep.addEventListener('didChangeAudioRoute', ({ output }) => {
855858

856859
});
857860
```
858861

859-
- `hold` (boolean)
860-
- `callUUID` (string)
861-
- The UUID of the call.
862+
- `output` (string) ⚠️ Will send `Speaker` on iOS but `SPEAKER` on Android.
863+
- `reason` (number, iOS only) See case's in https://developer.apple.com/documentation/avfaudio/avaudiosession/routechangereason
864+
- `handle` (string, Android only) Phone number of the incoming caller
865+
- `callUUID` (string, Android only) The UUID of the call
862866

863867
### - didPerformDTMFAction
864868

0 commit comments

Comments
 (0)