feat(sms): add hasPermission method

closes #721
This commit is contained in:
Ibby 2016-10-27 08:14:47 -04:00
parent 685ac5c7a0
commit 8fbf1f2b34

View File

@ -62,4 +62,13 @@ export class SMS {
options?: SmsOptions options?: SmsOptions
): Promise<any> { return; } ): Promise<any> { return; }
/**
* This function lets you know if the app has permission to send SMS
* @return {Promise<boolean>} returns a promise that resolves with a boolean that indicates if we have permission
*/
@Cordova({
platforms: ['Android']
})
static hasPermission(): Promise<boolean> { return; }
} }