@gachlab/capacitor-dnd-plugin 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,11 +45,11 @@ public class DoNotDisturbPlugin extends Plugin {
45
45
  "doNotDisturb",
46
46
  null);
47
47
  }
48
+ call.resolve(ret);
48
49
  }
49
50
  }, 5000, 10000);
50
- call.resolve(ret);
51
51
  }
52
-
52
+ @PluginMethod(returnType = PluginMethod.RETURN_NONE)
53
53
  public void toggleDoNotDisturb() {
54
54
  NotificationManager notificationManager = (NotificationManager) getActivity().getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);
55
55
  // Check if the notification policy access has been granted for the app.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gachlab/capacitor-dnd-plugin",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "A plugin to set and monitor the Do Not Disturb state",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",