@js-soft/native-abstractions / Exports / INativeNotificationAccess
Mangage local notifications
▸ clear(id
): Promise
<Result
<void
, ApplicationError
>>
Remove a notification from being displayed
Name | Type | Description |
---|---|---|
id |
number |
id of the notification to remove |
Promise
<Result
<void
, ApplicationError
>>
src/INativeNotificationAccess.ts:68
▸ clearAll(): Promise
<Result
<void
, ApplicationError
>>
Remove all notifications from being displayed
Promise
<Result
<void
, ApplicationError
>>
src/INativeNotificationAccess.ts:72
▸ getAll(): Promise
<Result
<number
[], ApplicationError
>>
Retrieve all notifications currently being displayed
Promise
<Result
<number
[], ApplicationError
>>
src/INativeNotificationAccess.ts:76
▸ init(): Promise
<Result
<void
, ApplicationError
>>
Initialize module
Promise
<Result
<void
, ApplicationError
>>
src/INativeNotificationAccess.ts:80
▸ schedule(title
, body
, options?
): Promise
<Result
<number
, ApplicationError
>>
Display a local notification
Name | Type | Description |
---|---|---|
title |
string |
title displayed in notification |
body |
string |
body displayed in notification |
options? |
INativeNotificationScheduleOptions |
additional options |
Promise
<Result
<number
, ApplicationError
>>
src/INativeNotificationAccess.ts:55
▸ update(id
, title
, body
, options?
): Promise
<Result
<void
, ApplicationError
>>
Update the content of an already displayed notification
Name | Type | Description |
---|---|---|
id |
number |
id of the notification to update |
title |
string |
new title of the notification |
body |
string |
new body of the notification |
options? |
INativeNotificationScheduleOptions |
new additional options of the notification |
Promise
<Result
<void
, ApplicationError
>>