Skip to content

Commit af87fcf

Browse files
Merge branch 'speakerOutputAndroid' of https://github.com/vtn-dev-prithipal/react-native-callkeep into speakerOutputAndroid
2 parents e68ec34 + b431d5c commit af87fcf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,12 +402,17 @@ RNCallKeep.checkSpeaker();
402402

403403
Update the audio route of Audio Service on Android with a `routeSpeaker` boolean value (`true` if speaker need on, `false` otherwise).
404404
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+
405406
_This feature is available only on Android._
406407

407408
```js
408-
RNCallKeep.toggleAudioRouteSpeaker(uuid: string, routeSpeaker: boolean);
409+
RNCallKeep.toggleAudioRouteSpeaker(uuid, true);
409410
```
410411

412+
- `uuid`: string
413+
- uuid of the current call.
414+
- `routeSpeaker`: boolean
415+
411416
### supportConnectionService (async)
412417

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

0 commit comments

Comments
 (0)