Skip to content

Commit 4b05842

Browse files
committed
Add documentation about setCurrentCallActive
1 parent 843aade commit 4b05842

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ RNCallKeep.setup(options);
7272

7373
## Methods
7474

75-
### setActive
75+
### setAvailable
7676
_This feature is available only on Android._
7777

7878
Tell _ConnectionService_ that the device is ready to accept outgoing calls.
7979
If not the user will be stuck in the build UI screen without any actions.
8080
Eg: Call it with `false` when disconnected from the sip client, when your token expires ...
8181

8282
```js
83-
RNCallKeep.setActive(true);
83+
RNCallKeep.setAvailable(true);
8484
```
8585

8686
- `active`: boolean
@@ -144,6 +144,14 @@ RNCallKeep.endCall(uuid);
144144
- `uuid`: string
145145
- The `uuid` used for `startCall` or `displayIncomingCall`
146146

147+
### setCurrentCallActive
148+
149+
Mark the current call as active (eg: when the callee as answered).
150+
151+
```js
152+
RNCallKeep.setCurrentCallActive();
153+
```
154+
147155

148156
### setMutedCall
149157

@@ -323,7 +331,7 @@ class RNCallKeepExample extends React.Component {
323331

324332
try {
325333
RNCallKeep.setup(options);
326-
RNCallKeep.setActive(true); // Only used for Android, see doc above.
334+
RNCallKeep.setAvailable(true); // Only used for Android, see doc above.
327335
} catch (err) {
328336
console.error('initializeCallKeep error:', err.message);
329337
}

0 commit comments

Comments
 (0)