Skip to content

Commit e207d9d

Browse files
committed
Added hasRequiredPermissions functionality
1 parent 4e13e43 commit e207d9d

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ export default class RNCallKeep {
5555

5656
}
5757

58+
static async hasRequiredPermissions(options: IOptions): Promise<boolean> {
59+
60+
}
61+
5862
static displayIncomingCall(
5963
uuid: string,
6064
handle: string,

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ class RNCallKeep {
4444
return;
4545
};
4646

47+
hasRequiredPermissions = async (options) => {
48+
this.setup(options);
49+
50+
return await this.hasPhoneAccount();
51+
}
52+
4753
displayIncomingCall = (uuid, handle, localizedCallerName, handleType = 'number', hasVideo = false) => {
4854
if (!isIOS) {
4955
RNCallKeepModule.displayIncomingCall(uuid, handle, localizedCallerName);

0 commit comments

Comments
 (0)