Notifications Port (ports)
Classes
NotificationsPort
import { NotificationsPort } from '@hexajs-dev/ports';
class NotificationsPort { ... }
Methods
clear()
clear(notificationId: string): Promise<boolean>
create()
create(options: HexaWebNotificationOptions): Promise<string>
create()
create(notificationId: string, options: HexaWebNotificationOptions): Promise<string>
create()
create(notificationIdOrOptions: string | HexaWebNotificationOptions, optionsMaybe?: HexaWebNotificationOptions): Promise<string>
getAll()
getAll(): Promise<{
[notificationId: string]: boolean;
}>
onButtonClickedAddListener()
onButtonClickedAddListener(listener: (notificationId: string, buttonIndex: number) => void): void
onButtonClickedRemoveListener()
onButtonClickedRemoveListener(listener: (notificationId: string, buttonIndex: number) => void): void
onClickedAddListener()
onClickedAddListener(listener: (notificationId: string) => void): void
onClickedRemoveListener()
onClickedRemoveListener(listener: (notificationId: string) => void): void
onClosedAddListener()
onClosedAddListener(listener: (notificationId: string, byUser: boolean) => void): void
onClosedRemoveListener()
onClosedRemoveListener(listener: (notificationId: string, byUser: boolean) => void): void