File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff 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
7878Tell _ ConnectionService_ that the device is ready to accept outgoing calls.
7979If not the user will be stuck in the build UI screen without any actions.
8080Eg: 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 }
You can’t perform that action at this time.
0 commit comments