Type Alias: NotificationManager
NotificationManager =
object
Defined in: index.ts:277
Properties
binary
binary: (
options) => typeofBINARY_NOTIFICATION_ID
Defined in: index.ts:286
Set/update persistent foreground service notification
Options will be merged with StartOptions.notification if binaryModule.start() function has already been invoked.
Parameters
options
Returns
typeof BINARY_NOTIFICATION_ID
Notification id: BINARY_NOTIFICATION_ID
close
close: (
id) =>void
Defined in: index.ts:296
Close existing notification.
Notes:
- Ignores if notification does not exist
- If BINARY_NOTIFICATION_ID is closed, it may cause the foreground service to be closed unexpected.
Parameters
id
number
notification ID
Returns
void
set
set: <
ID>(options,id?) =>ID
Defined in: index.ts:302
Create or update notification (unrelated to the persistent foreground service notification)
This will not affect the persistent binary status notification.
Type Parameters
ID
ID extends number | undefined
Parameters
options
id?
NotificationID<ID>
Returns
ID