interface Notification
implements EventTarget
import { type Notification } from "https://deno.land/x/yxz@0.32.0/typing/lib.dom.ts";
This Notifications API interface is used to configure and display desktop notifications to the user.
Properties
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,