@@ -145,17 +145,17 @@ different on iOS and Android:
145145
146146iOS:
147147``` js
148- RNCallKeep .startCall (uuid, number , contactIdentifier, handleType, hasVideo);
148+ RNCallKeep .startCall (uuid, handle , contactIdentifier, handleType, hasVideo);
149149```
150150
151151Android:
152152``` js
153- RNCallKeep .startCall (uuid, number , contactIdentifier);
153+ RNCallKeep .startCall (uuid, handle , contactIdentifier);
154154```
155155
156- - _ uuid _ : string
156+ - ` uuid ` : string
157157 - An ` uuid ` that should be stored and re-used for ` stopCall ` .
158- - ` number ` : string
158+ - ` handle ` : string
159159 - Phone number of the callee
160160- ` contactIdentifier ` : string
161161 - The identifier is displayed in the native call UI, and is typically the name of the call recipient.
@@ -175,8 +175,10 @@ Sets the Android caller name and number
175175Use this to update the Android display after an outgoing call has started
176176
177177``` js
178- RNCallKeep .updateDisplay (localizedCallerName, handle)
178+ RNCallKeep .updateDisplay (uuid, localizedCallerName, handle)
179179```
180+ - ` uuid ` : string
181+ - The ` uuid ` used for ` startCall ` or ` displayIncomingCall `
180182- ` handle ` : string
181183 - Phone number of the caller
182184- ` localizedCallerName ` : string (optional)
@@ -313,13 +315,17 @@ or by the app calling `RNCallKeep.startCall`.
313315Try to start your app call action from here (e.g. get credentials of the user by ` data.handle ` and/or send INVITE to your SIP server)
314316
315317``` js
316- RNCallKeep .addEventListener (' didReceiveStartCallAction' , ({ number , callUUID, name }) => {
318+ RNCallKeep .addEventListener (' didReceiveStartCallAction' , ({ handle , callUUID, name }) => {
317319
318320});
319321```
320322
321323- ` handle ` (string)
322- - The number/name got from Recents in built-in Phone app
324+ - Phone number of the callee
325+ - ` callUUID ` (string)
326+ - The UUID of the call that is to be answered
327+ - ` name ` (string)
328+ - Name of the callee
323329
324330### - answerCall
325331
@@ -332,7 +338,7 @@ RNCallKeep.addEventListener('answerCall', ({ callUUID }) => {
332338```
333339
334340- ` callUUID ` (string)
335- - The UUID of the call that is to be answered (iOS only) .
341+ - The UUID of the call that is to be answered.
336342
337343### - endCall
338344
@@ -345,7 +351,7 @@ RNCallKeep.addEventListener('endCall', ({ callUUID }) => {
345351```
346352
347353- ` callUUID ` (string)
348- - The UUID of the call that is to be answered (iOS only) .
354+ - The UUID of the call that is to be ended .
349355
350356### - didActivateAudioSession
351357
@@ -380,8 +386,12 @@ A call was muted by the system or the user:
380386RNCallKeep .addEventListener (' didPerformSetMutedCallAction' , ({ muted, callUUID }) => {
381387
382388});
383-
384389```
390+
391+ - ` muted ` (boolean)
392+ - ` callUUID ` (string)
393+ - The UUID of the call.
394+
385395### - didToggleHoldCallAction
386396
387397A call was held or unheld by the current user
@@ -394,7 +404,7 @@ RNCallKeep.addEventListener('didToggleHoldCallAction', ({ hold, callUUID }) => {
394404
395405- ` hold ` (boolean)
396406- ` callUUID ` (string)
397- - The UUID of the call that is to be answered (iOS only) .
407+ - The UUID of the call.
398408
399409### - didPerformDTMFAction
400410
@@ -407,7 +417,9 @@ RNCallKeep.addEventListener('didPerformDTMFAction', ({ digits, callUUID }) => {
407417```
408418
409419- ` digits ` (string)
420+ - The digits that emit the dtmf tone
410421- ` callUUID ` (string)
422+ - The UUID of the call.
411423
412424## Example
413425
@@ -477,7 +489,7 @@ class RNCallKeepExample extends React.Component {
477489 // Event Listener Callbacks
478490
479491 didReceiveStartCallAction (data) => {
480- let { number , callUUID, name } = data;
492+ let { handle , callUUID, name } = data;
481493 // Get this event after the system decides you can start a call
482494 // You can now start a call from within your app
483495 };
0 commit comments