interface Notification
implements EventTarget
import { type Notification } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";
This Notifications API export 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,