Skip to content

Commit c257086

Browse files
committed
Document checkPhoneAccountEnabled and checkPhoneAccountEnabled
1 parent 3ad2c6b commit c257086

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,29 @@ const options = {
388388
RNCallKeep.hasDefaultPhoneAccount(options);
389389
```
390390

391+
### checkPhoneAccountEnabled
392+
393+
Checks if the user has set a default [phone account](https://developer.android.com/reference/android/telecom/PhoneAccount) and it's enabled.
394+
395+
It's useful for custom permission prompts. It should be used in pair with `registerPhoneAccount`
396+
Similar to `hasDefaultPhoneAccount` but without trigering a prompt if the user doesn't have a phone account.
397+
398+
_This feature is available only on Android._
399+
400+
```js
401+
RNCallKeep.checkPhoneAccountEnabled();
402+
```
403+
404+
### isConnectionServiceAvailable
405+
406+
Check if the device support ConnectionService.
407+
408+
_This feature is available only on Android._
409+
410+
```js
411+
RNCallKeep.checkPhoneAccountEnabled();
412+
```
413+
391414
### backToForeground
392415
_This feature is available only on Android._
393416

0 commit comments

Comments
 (0)