interface Notification
implements EventTarget
import { type Notification } from "https://deno.land/x/evt@v2.5.2/lib/types/lib.dom.ts";
This Notifications API interface is used to configure and display desktop notifications to the user.
Properties
readonly
actions: ReadonlyArray<NotificationAction>readonly
dir: NotificationDirectiononclick: ((this: Notification, ev: Event) => any) | null
onclose: ((this: Notification, ev: Event) => any) | null
onerror: ((this: Notification, ev: Event) => any) | null
onshow: ((this: Notification, ev: Event) => any) | null
Methods
addEventListener<K extends keyof NotificationEventMap>(): void
type: K,
listener: (this: Notification, ev: NotificationEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof NotificationEventMap>(): void
type: K,
listener: (this: Notification, ev: NotificationEventMap[K]) => any,
options?: boolean | EventListenerOptions,