@capacitor/local-notifications
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.4.0](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/local-notifications@0.3.0...@capacitor/local-notifications@0.4.0) (2021-02-10) | ||
### Features | ||
* **android:** implements Activity Result API changes for permissions and activity results ([#222](https://github.com/ionic-team/capacitor-plugins/issues/222)) ([f671b9f](https://github.com/ionic-team/capacitor-plugins/commit/f671b9f4b472806ef43db6dcf302d4503cf1828c)) | ||
# [0.3.0](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/local-notifications@0.2.1...@capacitor/local-notifications@0.3.0) (2021-02-05) | ||
@@ -8,0 +19,0 @@ |
@@ -115,3 +115,3 @@ import type { PermissionState, PluginListenerHandle } from '@capacitor/core'; | ||
*/ | ||
addListener(eventName: 'localNotificationReceived', listenerFunc: (notification: LocalNotificationSchema) => void): PluginListenerHandle; | ||
addListener(eventName: 'localNotificationReceived', listenerFunc: (notification: LocalNotificationSchema) => void): Promise<PluginListenerHandle> & PluginListenerHandle; | ||
/** | ||
@@ -122,3 +122,3 @@ * Listen for when an action is performed on a notification. | ||
*/ | ||
addListener(eventName: 'localNotificationActionPerformed', listenerFunc: (notificationAction: ActionPerformed) => void): PluginListenerHandle; | ||
addListener(eventName: 'localNotificationActionPerformed', listenerFunc: (notificationAction: ActionPerformed) => void): Promise<PluginListenerHandle> & PluginListenerHandle; | ||
/** | ||
@@ -129,3 +129,3 @@ * Remove all listeners for this plugin. | ||
*/ | ||
removeAllListeners(): void; | ||
removeAllListeners(): Promise<void>; | ||
} | ||
@@ -132,0 +132,0 @@ /** |
{ | ||
"name": "@capacitor/local-notifications", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "The Local Notifications API provides a way to schedule device notifications locally (i.e. without a server sending push notifications).", | ||
@@ -47,7 +47,7 @@ "main": "dist/plugin.cjs.js", | ||
"devDependencies": { | ||
"@capacitor/android": "^3.0.0-beta.1", | ||
"@capacitor/cli": "^3.0.0-beta.1", | ||
"@capacitor/core": "^3.0.0-beta.1", | ||
"@capacitor/android": "^3.0.0-beta.2", | ||
"@capacitor/cli": "^3.0.0-beta.2", | ||
"@capacitor/core": "^3.0.0-beta.2", | ||
"@capacitor/docgen": "0.0.15", | ||
"@capacitor/ios": "^3.0.0-beta.1", | ||
"@capacitor/ios": "^3.0.0-beta.2", | ||
"@ionic/eslint-config": "^0.3.0", | ||
@@ -65,3 +65,3 @@ "@ionic/prettier-config": "~1.0.1", | ||
"peerDependencies": { | ||
"@capacitor/core": "^3.0.0-beta.1" | ||
"@capacitor/core": "^3.0.0-beta.2" | ||
}, | ||
@@ -84,3 +84,3 @@ "prettier": "@ionic/prettier-config", | ||
}, | ||
"gitHead": "e10d9dc09f6189f1547a82b8ae29759749fc1f8d" | ||
"gitHead": "91779a842eb14903c48c5309b899cd059115b55f" | ||
} |
@@ -210,3 +210,3 @@ # @capacitor/local-notifications | ||
```typescript | ||
addListener(eventName: 'localNotificationReceived', listenerFunc: (notification: LocalNotificationSchema) => void) => PluginListenerHandle | ||
addListener(eventName: 'localNotificationReceived', listenerFunc: (notification: LocalNotificationSchema) => void) => Promise<PluginListenerHandle> & PluginListenerHandle | ||
``` | ||
@@ -221,3 +221,3 @@ | ||
**Returns:** <code><a href="#pluginlistenerhandle">PluginListenerHandle</a></code> | ||
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>> & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code> | ||
@@ -232,3 +232,3 @@ **Since:** 1.0.0 | ||
```typescript | ||
addListener(eventName: 'localNotificationActionPerformed', listenerFunc: (notificationAction: ActionPerformed) => void) => PluginListenerHandle | ||
addListener(eventName: 'localNotificationActionPerformed', listenerFunc: (notificationAction: ActionPerformed) => void) => Promise<PluginListenerHandle> & PluginListenerHandle | ||
``` | ||
@@ -243,3 +243,3 @@ | ||
**Returns:** <code><a href="#pluginlistenerhandle">PluginListenerHandle</a></code> | ||
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>> & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code> | ||
@@ -254,3 +254,3 @@ **Since:** 1.0.0 | ||
```typescript | ||
removeAllListeners() => void | ||
removeAllListeners() => Promise<void> | ||
``` | ||
@@ -514,5 +514,5 @@ | ||
| Prop | Type | | ||
| ------------ | -------------------------- | | ||
| **`remove`** | <code>() => void</code> | | ||
| Prop | Type | | ||
| ------------ | ----------------------------------------- | | ||
| **`remove`** | <code>() => Promise<void></code> | | ||
@@ -519,0 +519,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
288110
5250