Skip to content

Commit b0a2fda

Browse files
Added documentation for toggleAudioRouteSpeaker function
1 parent 749318c commit b0a2fda

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,16 @@ _This feature is available only on iOS._
398398
RNCallKeep.checkSpeaker();
399399
```
400400

401+
### toggleAudioRouteSpeaker
402+
403+
Update the audio route of Audio Service on Android with a `routeSpeaker` boolean value (`true` if speaker need on, `false` otherwise).
404+
When Phone call is active, Android control the audio via connection service. so this function help to toggle the audio to Speaker or wired/ear-piece or vice-versa
405+
_This feature is available only on Android._
406+
407+
```js
408+
RNCallKeep.toggleAudioRouteSpeaker(uuid: string, routeSpeaker: boolean);
409+
```
410+
401411
### supportConnectionService (async)
402412

403413
Tells if `ConnectionService` is available on the device (returns a boolean).

0 commit comments

Comments
 (0)