Skip to main content

NotificationService

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
addadd(notification: Notification): void
callSagacallSaga(sagaName: string,args: any[]): void
clearTopicclearTopic(topic: string): void
constructornew NotificationService()
contextAppContext
debugdebug(payload: any): void
errorerror(payload: any): void
formatLevelNotificationformatLevelNotification(level: NotificationLevel,payload: any): NotificationContent
formatNotificationformatNotification(notificationContent: ReactNode | NotificationContent,settings: AppSettings,notificationService: default): Notification
getNotificationgetNotification(notificationId: string | number | symbol): void | Notification
infoinfo(payload: any): void
initinit(): void
onRouteChangeonRouteChange(): void
removeremove(notificationId: string | number | symbol): void
sendsend(notificationContent: ReactNode | NotificationContent): void
stateAnyState
successsuccess(payload: any): void
touchtouch(notificationId: string | number | symbol,permanent: boolean): voidThis method is called whenever the auto-removal of the notification should be suspended
untouchuntouch(notificationId: string | number | symbol): voidThis method is called whenever the auto-removal of the notification should be reactivated
warningwarning(payload: any): void