浏览代码

Implemented clearAll and cancelAll for Windows

Sebastián Katzer 8 年之前
父节点
当前提交
b69640e0c5
共有 1 个文件被更改,包括 28 次插入0 次删除
  1. 28 0
      src/windows/LocalNotificationProxy.js

+ 28 - 0
src/windows/LocalNotificationProxy.js

@@ -101,6 +101,34 @@ exports.schedule = function (success, error, args) {
     success();
     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.
  * Get the type of notification.
  *
  *