Skip to content

Commit

Permalink
Merge branch 'main' into local-notifications/alarm-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Oct 27, 2023
2 parents 84ff170 + 672d538 commit fddad8b
Show file tree
Hide file tree
Showing 20 changed files with 72 additions and 72 deletions.
24 changes: 12 additions & 12 deletions app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Only available for Android.
### addListener('appStateChange', ...)

```typescript
addListener(eventName: 'appStateChange', listenerFunc: StateChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'appStateChange', listenerFunc: StateChangeListener) => Promise<PluginListenerHandle>
```

Listen for changes in the app or the activity states.
Expand All @@ -185,7 +185,7 @@ On Web it's fired when the document's visibilitychange gets fired.
| **`eventName`** | <code>'appStateChange'</code> |
| **`listenerFunc`** | <code><a href="#statechangelistener">StateChangeListener</a></code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand All @@ -195,7 +195,7 @@ On Web it's fired when the document's visibilitychange gets fired.
### addListener('pause', ...)

```typescript
addListener(eventName: 'pause', listenerFunc: () => void) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'pause', listenerFunc: () => void) => Promise<PluginListenerHandle>
```

Listen for when the app or the activity are paused.
Expand All @@ -209,7 +209,7 @@ On Web it's fired when the document's visibilitychange gets fired and document.h
| **`eventName`** | <code>'pause'</code> |
| **`listenerFunc`** | <code>() =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 4.1.0

Expand All @@ -219,7 +219,7 @@ On Web it's fired when the document's visibilitychange gets fired and document.h
### addListener('resume', ...)

```typescript
addListener(eventName: 'resume', listenerFunc: () => void) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'resume', listenerFunc: () => void) => Promise<PluginListenerHandle>
```

Listen for when the app or activity are resumed.
Expand All @@ -234,7 +234,7 @@ On Web it's fired when the document's visibilitychange gets fired and document.h
| **`eventName`** | <code>'resume'</code> |
| **`listenerFunc`** | <code>() =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 4.1.0

Expand All @@ -244,7 +244,7 @@ On Web it's fired when the document's visibilitychange gets fired and document.h
### addListener('appUrlOpen', ...)

```typescript
addListener(eventName: 'appUrlOpen', listenerFunc: URLOpenListener) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'appUrlOpen', listenerFunc: URLOpenListener) => Promise<PluginListenerHandle>
```

Listen for url open events for the app. This handles both custom URL scheme links as well
Expand All @@ -255,7 +255,7 @@ as URLs your app handles (Universal Links on iOS and App Links on Android)
| **`eventName`** | <code>'appUrlOpen'</code> |
| **`listenerFunc`** | <code><a href="#urlopenlistener">URLOpenListener</a></code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand All @@ -265,7 +265,7 @@ as URLs your app handles (Universal Links on iOS and App Links on Android)
### addListener('appRestoredResult', ...)

```typescript
addListener(eventName: 'appRestoredResult', listenerFunc: RestoredListener) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'appRestoredResult', listenerFunc: RestoredListener) => Promise<PluginListenerHandle>
```

If the app was launched with previously persisted plugin call data, such as on Android
Expand Down Expand Up @@ -295,7 +295,7 @@ Activities (for example, Camera) to have this event and process handled.
| **`eventName`** | <code>'appRestoredResult'</code> |
| **`listenerFunc`** | <code><a href="#restoredlistener">RestoredListener</a></code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand All @@ -305,7 +305,7 @@ Activities (for example, Camera) to have this event and process handled.
### addListener('backButton', ...)

```typescript
addListener(eventName: 'backButton', listenerFunc: BackButtonListener) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'backButton', listenerFunc: BackButtonListener) => Promise<PluginListenerHandle>
```

Listen for the hardware back button event (Android only). Listening for this event will disable the
Expand All @@ -317,7 +317,7 @@ If you want to close the app, call `App.exitApp()`.
| **`eventName`** | <code>'backButton'</code> |
| **`listenerFunc`** | <code><a href="#backbuttonlistener">BackButtonListener</a></code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand Down
12 changes: 6 additions & 6 deletions app/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export interface AppPlugin {
addListener(
eventName: 'appStateChange',
listenerFunc: StateChangeListener,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* Listen for when the app or the activity are paused.
Expand All @@ -198,7 +198,7 @@ export interface AppPlugin {
addListener(
eventName: 'pause',
listenerFunc: () => void,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* Listen for when the app or activity are resumed.
Expand All @@ -213,7 +213,7 @@ export interface AppPlugin {
addListener(
eventName: 'resume',
listenerFunc: () => void,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* Listen for url open events for the app. This handles both custom URL scheme links as well
Expand All @@ -224,7 +224,7 @@ export interface AppPlugin {
addListener(
eventName: 'appUrlOpen',
listenerFunc: URLOpenListener,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* If the app was launched with previously persisted plugin call data, such as on Android
Expand Down Expand Up @@ -254,7 +254,7 @@ export interface AppPlugin {
addListener(
eventName: 'appRestoredResult',
listenerFunc: RestoredListener,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* Listen for the hardware back button event (Android only). Listening for this event will disable the
Expand All @@ -266,7 +266,7 @@ export interface AppPlugin {
addListener(
eventName: 'backButton',
listenerFunc: BackButtonListener,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* Remove all native listeners for this plugin
Expand Down
8 changes: 4 additions & 4 deletions browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ No-op on other platforms.
### addListener('browserFinished', ...)

```typescript
addListener(eventName: 'browserFinished', listenerFunc: () => void) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'browserFinished', listenerFunc: () => void) => Promise<PluginListenerHandle>
```

Android & iOS only: Listen for the browser finished event.
Expand All @@ -91,7 +91,7 @@ It fires when the Browser is closed by the user.
| **`eventName`** | <code>'browserFinished'</code> |
| **`listenerFunc`** | <code>() =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand All @@ -101,7 +101,7 @@ It fires when the Browser is closed by the user.
### addListener('browserPageLoaded', ...)

```typescript
addListener(eventName: 'browserPageLoaded', listenerFunc: () => void) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'browserPageLoaded', listenerFunc: () => void) => Promise<PluginListenerHandle>
```

Android & iOS only: Listen for the page loaded event.
Expand All @@ -113,7 +113,7 @@ It is not invoked for any subsequent page loads.
| **`eventName`** | <code>'browserPageLoaded'</code> |
| **`listenerFunc`** | <code>() =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand Down
4 changes: 2 additions & 2 deletions browser/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface BrowserPlugin {
addListener(
eventName: 'browserFinished',
listenerFunc: () => void,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* Android & iOS only: Listen for the page loaded event.
Expand All @@ -38,7 +38,7 @@ export interface BrowserPlugin {
addListener(
eventName: 'browserPageLoaded',
listenerFunc: () => void,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* Remove all native listeners for this plugin.
Expand Down
4 changes: 2 additions & 2 deletions filesystem/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ Perform a http request to a server and download the file to the specified destin
### addListener('progress', ...)

```typescript
addListener(eventName: 'progress', listenerFunc: ProgressListener) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'progress', listenerFunc: ProgressListener) => Promise<PluginListenerHandle>
```

Add a listener to file download progress events.
Expand All @@ -375,7 +375,7 @@ Add a listener to file download progress events.
| **`eventName`** | <code>'progress'</code> |
| **`listenerFunc`** | <code><a href="#progresslistener">ProgressListener</a></code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 5.1.0

Expand Down
2 changes: 1 addition & 1 deletion filesystem/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ export interface FilesystemPlugin {
addListener(
eventName: 'progress',
listenerFunc: ProgressListener,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;
}

/**
Expand Down
16 changes: 8 additions & 8 deletions keyboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ This method is only supported on iOS.
### addListener('keyboardWillShow', ...)

```typescript
addListener(eventName: 'keyboardWillShow', listenerFunc: (info: KeyboardInfo) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'keyboardWillShow', listenerFunc: (info: KeyboardInfo) => void) => Promise<PluginListenerHandle>
```

Listen for when the keyboard is about to be shown.
Expand All @@ -250,7 +250,7 @@ On Android keyboardWillShow and keyboardDidShow fire almost at the same time.
| **`eventName`** | <code>'keyboardWillShow'</code> |
| **`listenerFunc`** | <code>(info: <a href="#keyboardinfo">KeyboardInfo</a>) =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand All @@ -260,7 +260,7 @@ On Android keyboardWillShow and keyboardDidShow fire almost at the same time.
### addListener('keyboardDidShow', ...)

```typescript
addListener(eventName: 'keyboardDidShow', listenerFunc: (info: KeyboardInfo) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'keyboardDidShow', listenerFunc: (info: KeyboardInfo) => void) => Promise<PluginListenerHandle>
```

Listen for when the keyboard is shown.
Expand All @@ -272,7 +272,7 @@ On Android keyboardWillShow and keyboardDidShow fire almost at the same time.
| **`eventName`** | <code>'keyboardDidShow'</code> |
| **`listenerFunc`** | <code>(info: <a href="#keyboardinfo">KeyboardInfo</a>) =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand All @@ -282,7 +282,7 @@ On Android keyboardWillShow and keyboardDidShow fire almost at the same time.
### addListener('keyboardWillHide', ...)

```typescript
addListener(eventName: 'keyboardWillHide', listenerFunc: () => void) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'keyboardWillHide', listenerFunc: () => void) => Promise<PluginListenerHandle>
```

Listen for when the keyboard is about to be hidden.
Expand All @@ -294,7 +294,7 @@ On Android keyboardWillHide and keyboardDidHide fire almost at the same time.
| **`eventName`** | <code>'keyboardWillHide'</code> |
| **`listenerFunc`** | <code>() =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand All @@ -304,7 +304,7 @@ On Android keyboardWillHide and keyboardDidHide fire almost at the same time.
### addListener('keyboardDidHide', ...)

```typescript
addListener(eventName: 'keyboardDidHide', listenerFunc: () => void) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'keyboardDidHide', listenerFunc: () => void) => Promise<PluginListenerHandle>
```

Listen for when the keyboard is hidden.
Expand All @@ -316,7 +316,7 @@ On Android keyboardWillHide and keyboardDidHide fire almost at the same time.
| **`eventName`** | <code>'keyboardDidHide'</code> |
| **`listenerFunc`** | <code>() =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand Down
8 changes: 4 additions & 4 deletions keyboard/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export interface KeyboardPlugin {
addListener(
eventName: 'keyboardWillShow',
listenerFunc: (info: KeyboardInfo) => void,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* Listen for when the keyboard is shown.
Expand All @@ -217,7 +217,7 @@ export interface KeyboardPlugin {
addListener(
eventName: 'keyboardDidShow',
listenerFunc: (info: KeyboardInfo) => void,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* Listen for when the keyboard is about to be hidden.
Expand All @@ -229,7 +229,7 @@ export interface KeyboardPlugin {
addListener(
eventName: 'keyboardWillHide',
listenerFunc: () => void,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* Listen for when the keyboard is hidden.
Expand All @@ -241,7 +241,7 @@ export interface KeyboardPlugin {
addListener(
eventName: 'keyboardDidHide',
listenerFunc: () => void,
): Promise<PluginListenerHandle> & PluginListenerHandle;
): Promise<PluginListenerHandle>;

/**
* Remove all native listeners for this plugin.
Expand Down
8 changes: 4 additions & 4 deletions local-notifications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ Only available on Android.
### addListener('localNotificationReceived', ...)

```typescript
addListener(eventName: 'localNotificationReceived', listenerFunc: (notification: LocalNotificationSchema) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'localNotificationReceived', listenerFunc: (notification: LocalNotificationSchema) => void) => Promise<PluginListenerHandle>
```

Listen for when notifications are displayed.
Expand All @@ -372,7 +372,7 @@ Listen for when notifications are displayed.
| **`eventName`** | <code>'localNotificationReceived'</code> |
| **`listenerFunc`** | <code>(notification: <a href="#localnotificationschema">LocalNotificationSchema</a>) =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand All @@ -382,7 +382,7 @@ Listen for when notifications are displayed.
### addListener('localNotificationActionPerformed', ...)

```typescript
addListener(eventName: 'localNotificationActionPerformed', listenerFunc: (notificationAction: ActionPerformed) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'localNotificationActionPerformed', listenerFunc: (notificationAction: ActionPerformed) => void) => Promise<PluginListenerHandle>
```

Listen for when an action is performed on a notification.
Expand All @@ -392,7 +392,7 @@ Listen for when an action is performed on a notification.
| **`eventName`** | <code>'localNotificationActionPerformed'</code> |
| **`listenerFunc`** | <code>(notificationAction: <a href="#actionperformed">ActionPerformed</a>) =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

**Since:** 1.0.0

Expand Down
Loading

0 comments on commit fddad8b

Please sign in to comment.