From 8460ecf725ea6ca62b933a2f7c5a6c82628599eb Mon Sep 17 00:00:00 2001 From: Shlomo Zalman Heigh Date: Tue, 4 Jul 2017 15:16:12 -0500 Subject: [PATCH] Add clearAllNotifications() to type definitions --- types/index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index 455b78fc3..b47335c20 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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 } /**