Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Latest commit

 

History

History
135 lines (76 loc) · 3.52 KB

INativeNotificationAccess.md

File metadata and controls

135 lines (76 loc) · 3.52 KB

@js-soft/native-abstractions / Exports / INativeNotificationAccess

Interface: INativeNotificationAccess

Mangage local notifications

Table of contents

Methods

Methods

clear

clear(id): Promise<Result<void, ApplicationError>>

Remove a notification from being displayed

Parameters

Name Type Description
id number id of the notification to remove

Returns

Promise<Result<void, ApplicationError>>

Defined in

src/INativeNotificationAccess.ts:68


clearAll

clearAll(): Promise<Result<void, ApplicationError>>

Remove all notifications from being displayed

Returns

Promise<Result<void, ApplicationError>>

Defined in

src/INativeNotificationAccess.ts:72


getAll

getAll(): Promise<Result<number[], ApplicationError>>

Retrieve all notifications currently being displayed

Returns

Promise<Result<number[], ApplicationError>>

Defined in

src/INativeNotificationAccess.ts:76


init

init(): Promise<Result<void, ApplicationError>>

Initialize module

Returns

Promise<Result<void, ApplicationError>>

Defined in

src/INativeNotificationAccess.ts:80


schedule

schedule(title, body, options?): Promise<Result<number, ApplicationError>>

Display a local notification

Parameters

Name Type Description
title string title displayed in notification
body string body displayed in notification
options? INativeNotificationScheduleOptions additional options

Returns

Promise<Result<number, ApplicationError>>

Defined in

src/INativeNotificationAccess.ts:55


update

update(id, title, body, options?): Promise<Result<void, ApplicationError>>

Update the content of an already displayed notification

Parameters

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

Returns

Promise<Result<void, ApplicationError>>

Defined in

src/INativeNotificationAccess.ts:63