interface dom.Notification
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/index.ts";
const { Notification } = dom;
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,