mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-01 20:32:55 +08:00
fix(): add clearAllNotifications()
This commit is contained in:
parent
cb293639bc
commit
8c021bcaa0
@ -110,6 +110,8 @@ export interface PushNotification {
|
|||||||
unregister(successHandler: () => any, errorHandler?: () => any): void;
|
unregister(successHandler: () => any, errorHandler?: () => any): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* iOS & android only
|
||||||
|
*
|
||||||
* Set the badge count visible when the app is not running
|
* Set the badge count visible when the app is not running
|
||||||
*
|
*
|
||||||
* The count is an integer indicating what number should show up in the badge.
|
* The count is an integer indicating what number should show up in the badge.
|
||||||
@ -121,6 +123,8 @@ export interface PushNotification {
|
|||||||
*/
|
*/
|
||||||
setApplicationIconBadgeNumber(successHandler: () => any, errorHandler: () => any, count?: number): void;
|
setApplicationIconBadgeNumber(successHandler: () => any, errorHandler: () => any, count?: number): void;
|
||||||
/**
|
/**
|
||||||
|
* iOS only
|
||||||
|
*
|
||||||
* Get the current badge count visible when the app is not running
|
* Get the current badge count visible when the app is not running
|
||||||
* successHandler gets called with an integer which is the current badge count
|
* successHandler gets called with an integer which is the current badge count
|
||||||
* @param successHandler
|
* @param successHandler
|
||||||
@ -130,6 +134,7 @@ export interface PushNotification {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* iOS only
|
* iOS only
|
||||||
|
*
|
||||||
* Tells the OS that you are done processing a background push notification.
|
* Tells the OS that you are done processing a background push notification.
|
||||||
* successHandler gets called when background push processing is successfully completed.
|
* successHandler gets called when background push processing is successfully completed.
|
||||||
* @param successHandler
|
* @param successHandler
|
||||||
@ -137,6 +142,16 @@ export interface PushNotification {
|
|||||||
* @param id
|
* @param id
|
||||||
*/
|
*/
|
||||||
finish(successHandler: () => any, errorHandler: () => any, id?: string): void;
|
finish(successHandler: () => any, errorHandler: () => any, id?: string): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* iOS & android only
|
||||||
|
*
|
||||||
|
* Tells the OS to clear all notifications from the Notification Center.
|
||||||
|
* successHandler gets called when the api successfully clears the notifications
|
||||||
|
* @param successHandler
|
||||||
|
* @param errorHandler
|
||||||
|
*/
|
||||||
|
clearAllNotifications(successHandler: () => any, errorHandler: () => any): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IOSPushOptions {
|
export interface IOSPushOptions {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user