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);
72
72
73
73
## Methods
74
74
75
- ### setActive
75
+ ### setAvailable
76
76
_ This feature is available only on Android._
77
77
78
78
Tell _ ConnectionService_ that the device is ready to accept outgoing calls.
79
79
If not the user will be stuck in the build UI screen without any actions.
80
80
Eg: Call it with ` false ` when disconnected from the sip client, when your token expires ...
81
81
82
82
``` js
83
- RNCallKeep .setActive (true );
83
+ RNCallKeep .setAvailable (true );
84
84
```
85
85
86
86
- ` active ` : boolean
@@ -144,6 +144,14 @@ RNCallKeep.endCall(uuid);
144
144
- ` uuid ` : string
145
145
- The ` uuid ` used for ` startCall ` or ` displayIncomingCall `
146
146
147
+ ### setCurrentCallActive
148
+
149
+ Mark the current call as active (eg: when the callee as answered).
150
+
151
+ ``` js
152
+ RNCallKeep .setCurrentCallActive ();
153
+ ```
154
+
147
155
148
156
### setMutedCall
149
157
@@ -323,7 +331,7 @@ class RNCallKeepExample extends React.Component {
323
331
324
332
try {
325
333
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.
327
335
} catch (err) {
328
336
console .error (' initializeCallKeep error:' , err .message );
329
337
}
You can’t perform that action at this time.
0 commit comments