Class: NotificationsStore#
Hierarchy#
- NotificationsStore
Index#
Constructors#
Properties#
Methods#
Constructors#
constructor#
+ new NotificationsStore(): NotificationsStore
Defined in src/renderer/components/notifications/notifications.store.tsx:48
Returns: NotificationsStore
Properties#
Protected autoHideTimers#
• autoHideTimers: Map‹string | number, number› = new Map
Defined in src/renderer/components/notifications/notifications.store.tsx:48
notifications#
• notifications: IObservableArray‹Notification› = observable.array
Defined in src/renderer/components/notifications/notifications.store.tsx:46
Methods#
add#
▸ add(notification: Notification): function
Defined in src/renderer/components/notifications/notifications.store.tsx:80
Parameters:
| Name | Type |
|---|---|
notification |
Notification |
Returns: function
▸ (): void
addAutoHideTimer#
▸ addAutoHideTimer(id: NotificationId): void
Defined in src/renderer/components/notifications/notifications.store.tsx:59
Parameters:
| Name | Type |
|---|---|
id |
NotificationId |
Returns: void
getById#
▸ getById(id: NotificationId): Notification | null
Defined in src/renderer/components/notifications/notifications.store.tsx:55
Parameters:
| Name | Type |
|---|---|
id |
NotificationId |
Returns: Notification | null
remove#
▸ remove(id: NotificationId): void
Defined in src/renderer/components/notifications/notifications.store.tsx:97
Parameters:
| Name | Type |
|---|---|
id |
NotificationId |
Returns: void
removeAutoHideTimer#
▸ removeAutoHideTimer(id: NotificationId): void
Defined in src/renderer/components/notifications/notifications.store.tsx:72
Parameters:
| Name | Type |
|---|---|
id |
NotificationId |
Returns: void