Skip to content

Commit

Permalink
Merge pull request #168 from react-native-webrtc/zxcpoiu-patch-1
Browse files Browse the repository at this point in the history
readme/doc: fix typo and remove duplicated `endAllCalls` method sections
  • Loading branch information
manuquentin authored Mar 11, 2020
2 parents 2b1442e + fa35ab2 commit d21c9c3
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ RNCallKeep.updateDisplay(uuid, displayName, handle)

### endCall

When you finish an incoming/outgoing call.
When finish an incoming/outgoing call.
(When user actively chooses to end the call from your app's UI.)

```js
RNCallKeep.endCall(uuid);
Expand All @@ -229,7 +230,7 @@ RNCallKeep.endCall(uuid);

### endAllCalls

End all ongoing connections.
End all ongoing calls.

```js
RNCallKeep.endAllCalls();
Expand All @@ -248,7 +249,9 @@ RNCallKeep.rejectCall(uuid);

### reportEndCallWithUUID

Report that the call ended without the user initiating
Report that the call ended without the user initiating.
(Not ended by user, is usually due to the following reasons)


```js
RNCallKeep.reportEndCallWithUUID(uuid, reason);
Expand Down Expand Up @@ -295,14 +298,6 @@ RNCallKeep.setOnHold(uuid, true)
- uuid of the current call.
- `hold`: boolean

### endAllCalls

End all calls that have been started on the device.

```js
RNCallKeep.endAllCalls();
```

### checkIfBusy

Checks if there are any active calls on the device and returns a promise with a boolean value (`true` if there're active calls, `false` otherwise).
Expand Down Expand Up @@ -463,7 +458,7 @@ RNCallKeep.addEventListener('didDisplayIncomingCall', ({ error, callUUID, handle
- `fromPushKit` (string)
- `1` (call triggered from PushKit)
- `0` (call not triggered from PushKit)
- `didDisplayIncomingCall` (object)
- `payload` (object)
- VOIP push payload.

### - didPerformSetMutedCallAction
Expand Down

0 comments on commit d21c9c3

Please sign in to comment.