Explorar el Código

Implemented clearAll and cancelAll for Windows

Sebastián Katzer hace 8 años
padre
commit
b69640e0c5
Se han modificado 1 ficheros con 28 adiciones y 0 borrados
  1. 28 0
      src/windows/LocalNotificationProxy.js

+ 28 - 0
src/windows/LocalNotificationProxy.js

@@ -101,6 +101,34 @@ exports.schedule = function (success, error, args) {
     success();
 };
 
+/**
+ * Clear all notifications.
+ *
+ * @param [ Function ] success Success callback
+ * @param [ Function ] error   Error callback
+ *
+ * @return [ Void ]
+ */
+exports.clearAll = function (success, error) {
+    impl.clearAll();
+    exports.fireEvent('clearall');
+    success();
+};
+
+/**
+ * Cancel all notifications.
+ *
+ * @param [ Function ] success Success callback
+ * @param [ Function ] error   Error callback
+ *
+ * @return [ Void ]
+ */
+exports.cancelAll = function (success, error) {
+    impl.cancelAll();
+    exports.fireEvent('cancelall');
+    success();
+};
+
 /**
  * Get the type of notification.
  *