Skip to content

Commit

Permalink
docs(notifications): Add links to explain the Android importance and …
Browse files Browse the repository at this point in the history
…visibility values (ionic-team#584)
  • Loading branch information
carlpoole authored Aug 31, 2021
1 parent 324ed86 commit 661c37b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,15 @@ Remove all native listeners for this plugin.

#### Importance

The importance level. For more details, see the [Android Developer Docs](https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT)

<code>1 | 2 | 3 | 4 | 5</code>


#### Visibility

The notification visibility. For more details, see the [Android Developer Docs](https://developer.android.com/reference/androidx/core/app/NotificationCompat#VISIBILITY_PRIVATE)

<code>-1 | 0 | 1</code>


Expand Down
9 changes: 9 additions & 0 deletions src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,16 @@ export interface Channel {
vibration?: boolean;
}

/**
* The importance level. For more details, see the [Android Developer Docs](https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT)
* @since 1.0.0
*/
export type Importance = 1 | 2 | 3 | 4 | 5;

/**
* The notification visibility. For more details, see the [Android Developer Docs](https://developer.android.com/reference/androidx/core/app/NotificationCompat#VISIBILITY_PRIVATE)
* @since 1.0.0
*/
export type Visibility = -1 | 0 | 1;

export interface ListChannelsResult {
Expand Down

0 comments on commit 661c37b

Please sign in to comment.