Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1827 from szh/master
Browse files Browse the repository at this point in the history
Add clearAllNotifications() to type definitions
  • Loading branch information
fredgalvao authored Jul 6, 2017
2 parents 04cb6af + 8460ecf commit 2a8e3df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ declare namespace PhonegapPluginPush {
* @param id
*/
finish(successHandler?: () => any, errorHandler?: () => any, id?: string): void

/**
* Tells the OS to clear all notifications from the Notification Center
* @param successHandler Is called when the api successfully clears the notifications.
* @param errorHandler Is called when the api encounters an error when attempting to clears the notifications.
*/
clearAllNotifications(successHandler: () => any, errorHandler: () => any): void
}

/**
Expand Down

0 comments on commit 2a8e3df

Please sign in to comment.