@@ -145,17 +145,17 @@ different on iOS and Android:
145
145
146
146
iOS:
147
147
``` js
148
- RNCallKeep .startCall (uuid, number , contactIdentifier, handleType, hasVideo);
148
+ RNCallKeep .startCall (uuid, handle , contactIdentifier, handleType, hasVideo);
149
149
```
150
150
151
151
Android:
152
152
``` js
153
- RNCallKeep .startCall (uuid, number , contactIdentifier);
153
+ RNCallKeep .startCall (uuid, handle , contactIdentifier);
154
154
```
155
155
156
- - _ uuid _ : string
156
+ - ` uuid ` : string
157
157
- An ` uuid ` that should be stored and re-used for ` stopCall ` .
158
- - ` number ` : string
158
+ - ` handle ` : string
159
159
- Phone number of the callee
160
160
- ` contactIdentifier ` : string
161
161
- 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
175
175
Use this to update the Android display after an outgoing call has started
176
176
177
177
``` js
178
- RNCallKeep .updateDisplay (localizedCallerName, handle)
178
+ RNCallKeep .updateDisplay (uuid, localizedCallerName, handle)
179
179
```
180
+ - ` uuid ` : string
181
+ - The ` uuid ` used for ` startCall ` or ` displayIncomingCall `
180
182
- ` handle ` : string
181
183
- Phone number of the caller
182
184
- ` localizedCallerName ` : string (optional)
@@ -313,13 +315,17 @@ or by the app calling `RNCallKeep.startCall`.
313
315
Try 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)
314
316
315
317
``` js
316
- RNCallKeep .addEventListener (' didReceiveStartCallAction' , ({ number , callUUID, name }) => {
318
+ RNCallKeep .addEventListener (' didReceiveStartCallAction' , ({ handle , callUUID, name }) => {
317
319
318
320
});
319
321
```
320
322
321
323
- ` 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
323
329
324
330
### - answerCall
325
331
@@ -332,7 +338,7 @@ RNCallKeep.addEventListener('answerCall', ({ callUUID }) => {
332
338
```
333
339
334
340
- ` 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.
336
342
337
343
### - endCall
338
344
@@ -345,7 +351,7 @@ RNCallKeep.addEventListener('endCall', ({ callUUID }) => {
345
351
```
346
352
347
353
- ` 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 .
349
355
350
356
### - didActivateAudioSession
351
357
@@ -380,8 +386,12 @@ A call was muted by the system or the user:
380
386
RNCallKeep .addEventListener (' didPerformSetMutedCallAction' , ({ muted, callUUID }) => {
381
387
382
388
});
383
-
384
389
```
390
+
391
+ - ` muted ` (boolean)
392
+ - ` callUUID ` (string)
393
+ - The UUID of the call.
394
+
385
395
### - didToggleHoldCallAction
386
396
387
397
A call was held or unheld by the current user
@@ -394,7 +404,7 @@ RNCallKeep.addEventListener('didToggleHoldCallAction', ({ hold, callUUID }) => {
394
404
395
405
- ` hold ` (boolean)
396
406
- ` callUUID ` (string)
397
- - The UUID of the call that is to be answered (iOS only) .
407
+ - The UUID of the call.
398
408
399
409
### - didPerformDTMFAction
400
410
@@ -407,7 +417,9 @@ RNCallKeep.addEventListener('didPerformDTMFAction', ({ digits, callUUID }) => {
407
417
```
408
418
409
419
- ` digits ` (string)
420
+ - The digits that emit the dtmf tone
410
421
- ` callUUID ` (string)
422
+ - The UUID of the call.
411
423
412
424
## Example
413
425
@@ -477,7 +489,7 @@ class RNCallKeepExample extends React.Component {
477
489
// Event Listener Callbacks
478
490
479
491
didReceiveStartCallAction (data) => {
480
- let { number , callUUID, name } = data;
492
+ let { handle , callUUID, name } = data;
481
493
// Get this event after the system decides you can start a call
482
494
// You can now start a call from within your app
483
495
};
0 commit comments