# Titanium.Android.NotificationManager
Module for managing notifications.
# Overview
This module provides methods for sending and canceling notifications, which are represented by the Titanium.Android.Notification object.
Further Reading:
# Methods
# areNotificationsEnabled
Returns whether showing notifications is enabled for the application.
Returns
- Type
- Boolean
# cancel
Cancels a previously displayed notification.
Parameters
Name | Type | Description |
---|---|---|
id | Number | The ID passed to notify. |
Returns
- Type
- void
# createNotificationChannel
Create a notification channel.
This will return null
when used on Android versions lower than 8.0.
Parameters
Name | Type | Description |
---|---|---|
parameters | Dictionary<Titanium.Android.NotificationChannel> | Properties to set on a new object, including any defined by Titanium.Android.NotificationChannel except those marked not-creation or read-only. |
Returns
# notify
Adds a persistent notification to the status bar.
The new notification replaces any previous notification with the same id
.
Parameters
Name | Type | Description |
---|---|---|
id | Number | An ID that may be used to cancel a shown notification. |
notification | Titanium.Android.Notification | Notification to display. |
Returns
- Type
- void