Skip to content

Commit 8c77cbd

Browse files
authored
Merge pull request #145 from grit96/patch-1
Fix docs for didDisplayIncomingCall
2 parents 3c67005 + 49b2cdc commit 8c77cbd

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,14 +441,26 @@ RNCallKeep.addEventListener('didActivateAudioSession', () => {
441441
Callback for `RNCallKeep.displayIncomingCall`
442442

443443
```js
444-
RNCallKeep.addEventListener('didDisplayIncomingCall', ({ error, uuid, handle, localizedCallerName, fromPushKit }) => {
444+
RNCallKeep.addEventListener('didDisplayIncomingCall', ({ error, callUUID, handle, localizedCallerName, hasVideo, fromPushKit }) => {
445445
// you might want to do following things when receiving this event:
446446
// - Start playing ringback if it is an outgoing call
447447
});
448448
```
449449

450450
- `error` (string)
451451
- iOS only.
452+
- `callUUID` (string)
453+
- The UUID of the call.
454+
- `handle` (string)
455+
- Phone number of the caller
456+
- `localizedCallerName` (string)
457+
- Name of the caller to be displayed on the native UI
458+
- `hasVideo` (string)
459+
- `1` (video enabled)
460+
- `0` (video not enabled)
461+
- `fromPushKit` (string)
462+
- `1` (call triggered from PushKit)
463+
- `0` (call not triggered from PushKit)
452464

453465
### - didPerformSetMutedCallAction
454466

0 commit comments

Comments
 (0)