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

@ -60,6 +60,15 @@ export class SMS {
phoneNumber: string | string[],
message: string,
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; }
}