You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,9 @@ Alternative on iOS you can perform setup in `AppDelegate.m`. Doing this allows c
121
121
If provided, the maximum number of calls in a single group, used for conferencing (Default: 1, no conferencing)
122
122
- `supportsVideo`: boolean (optional)
123
123
If provided, whether or not the application supports video calling (Default: true)
124
+
- `displayCallReachabilityTimeout`: number in ms (optional)
125
+
If provided, starts a timeout that checks if the application is reachable and ends the call if not (Default: null)
126
+
You'll have to call `setReachable()` as soon as your Javascript application is started.
124
127
- `android`: object
125
128
- `alertTitle`: string (required)
126
129
When asking for _phone account_ permission, we need to provider a title for the `Alert` to ask the user for it
@@ -139,8 +142,13 @@ Alternative on iOS you can perform setup in `AppDelegate.m`. Doing this allows c
139
142
multiple popups to the user at different times.
140
143
- `selfManaged`: boolean (optional)
141
144
When set to true, call keep will configure itself to run as a self managed connection service. This is an advanced topic, and it's best to refer to [Googles Documentation](https://developer.android.com/guide/topics/connectivity/telecom/selfManaged) on the matter.
145
+
- `displayCallReachabilityTimeout`: number in ms (optional)
146
+
If provided, starts a timeout that checks if the application is reachable and ends the call if not (Default: null)
147
+
You'll have to call `setReachable()` as soon as your Javascript application is started.
142
148
143
-
`setup` calls internally `registerPhoneAccount` and `registerEvents`.
149
+
`setup` calls internally `registerPhoneAccount`, `registerEvents` and `setSettings`.
150
+
151
+
You can alternatively just call `setSettings()` with the same option as `setup()` to define only your settings.
144
152
145
153
# Constants
146
154
@@ -190,7 +198,8 @@ Self Managed calling apps are an advanced topic, and there are many steps involv
@@ -224,14 +233,21 @@ Self Managed calling apps are an advanced topic, and there are many steps involv
224
233
225
234
226
235
### getInitialEvents
227
-
_This feature is available only on iOS._
228
236
229
237
If there were some actions performed by user before JS context has been created, this method would return early fired events. This is alternative to "didLoadWithEvents" event.
230
238
231
239
```js
232
240
RNCallKeep.getInitialEvents();
233
241
```
234
242
243
+
### clearInitialEvents
244
+
245
+
Clear all pending actions returned by `getInitialEvents()`.
0 commit comments