feat(localNotifications): added register and has permission functions (#536)

This commit is contained in:
Andrew Mitchell 2016-09-13 07:10:14 -05:00 committed by Ibrahim Hadeed
parent 23fc908eb6
commit c83b0437fa

View File

@ -195,6 +195,20 @@ export class LocalNotifications {
@Cordova()
static getAllTriggered(): Promise<Array<Notification>> { return; }
/**
* Register permission to show notifications if not already granted.
* @returns {Promise} Returns a promise
*/
@Cordova()
static registerPermission(): Promise<boolean> { return; }
/**
* Informs if the app has the permission to show notifications.
* @returns {Promise} Returns a promise
*/
@Cordova()
static hasPermission(): Promise<boolean> { return; }
/**
* Sets a callback for a specific event