Skip to content

Class: NotificationsStore#

Hierarchy#

  • NotificationsStore

Index#

Properties#

Methods#

Properties#

Protected autoHideTimers#

• autoHideTimers: Map‹string | number, number› = new Map()

Defined in src/renderer/components/notifications/notifications.store.ts:27


notifications#

• notifications: IObservableArray‹Notification› = observable.array([], { deep: false })

Defined in src/renderer/components/notifications/notifications.store.ts:25

Methods#

add#

▸ add(notification: Notification): function

Defined in src/renderer/components/notifications/notifications.store.ts:51

Parameters:

Name Type
notification Notification

Returns: function

▸ (): void


addAutoHideTimer#

▸ addAutoHideTimer(id: NotificationId): void

Defined in src/renderer/components/notifications/notifications.store.ts:33

Parameters:

Name Type
id NotificationId

Returns: void


getById#

▸ getById(id: NotificationId): Notification | null

Defined in src/renderer/components/notifications/notifications.store.ts:29

Parameters:

Name Type
id NotificationId

Returns: Notification | null


remove#

▸ remove(id: NotificationId): void

Defined in src/renderer/components/notifications/notifications.store.ts:66

Parameters:

Name Type
id NotificationId

Returns: void


removeAutoHideTimer#

▸ removeAutoHideTimer(id: NotificationId): void

Defined in src/renderer/components/notifications/notifications.store.ts:43

Parameters:

Name Type
id NotificationId

Returns: void