Skip to content

Commit 8caa20c

Browse files
committed
Document clearInitialEvents()
1 parent 0650823 commit 8caa20c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ Self Managed calling apps are an advanced topic, and there are many steps involv
198198
199199
| Method | Return Type | iOS | Android |
200200
| ----------------------------------------------------------------- | ------------------- | :--: | :-----: |
201-
| [getInitialEvents()](#getInitialEvents) | `Promise<String[]>` | ✅ | ❌ |
201+
| [getInitialEvents()](#getInitialEvents) | `Promise<String[]>` | ✅ | ✅ |
202+
| [clearInitialEvents()](#clearInitialEvents) | `void>` | ✅ | ✅ |
202203
| [setAvailable()](#setAvailable) | `Promise<void>` | ❌ | ✅ |
203204
| [setForegroundServiceSettings()](#setForegroundServiceSettings) | `Promise<void>` | ❌ | ✅ |
204205
| [canMakeMultipleCalls()](#canMakeMultipleCalls) | `Promise<void>` | ❌ | ✅ |
@@ -232,14 +233,21 @@ Self Managed calling apps are an advanced topic, and there are many steps involv
232233
233234
234235
### getInitialEvents
235-
_This feature is available only on iOS._
236236
237237
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.
238238
239239
```js
240240
RNCallKeep.getInitialEvents();
241241
```
242242

243+
### clearInitialEvents
244+
245+
Clear all pending actions returned by `getInitialEvents()`.
246+
247+
```js
248+
RNCallKeep.clearInitialEvents();
249+
```
250+
243251
### setAvailable
244252
_This feature is available only on Android._
245253

0 commit comments

Comments
 (0)