Skip to content

Commit 0028869

Browse files
committed
Update doc for didDisplayIncomingCall
1 parent 4ba799d commit 0028869

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

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

443443
```js
444-
RNCallKeep.addEventListener('didDisplayIncomingCall', ({ error, callUUID, handle, localizedCallerName, hasVideo, fromPushKit }) => {
444+
RNCallKeep.addEventListener('didDisplayIncomingCall', ({ error, callUUID, handle, localizedCallerName, hasVideo, fromPushKit, payload }) => {
445445
// you might want to do following things when receiving this event:
446446
// - Start playing ringback if it is an outgoing call
447447
});
@@ -461,6 +461,8 @@ RNCallKeep.addEventListener('didDisplayIncomingCall', ({ error, callUUID, handle
461461
- `fromPushKit` (string)
462462
- `1` (call triggered from PushKit)
463463
- `0` (call not triggered from PushKit)
464+
- `didDisplayIncomingCall` (object)
465+
- VOIP push payload.
464466

465467
### - didPerformSetMutedCallAction
466468

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type Events =
1+
export type Events =
22
'didReceiveStartCallAction' |
33
'answerCall' |
44
'endCall' |

0 commit comments

Comments
 (0)