Options
All
  • Public
  • Public/Protected
  • All
Menu

This Notifications API interface is used to configure and display desktop notifications to the user.

Hierarchy

  • EventTarget
    • Notification

Index

Properties

body: string
data: any
icon: string
lang: string
onclick: null | ((this: internal.Notification, ev: Event) => any)
onclose: null | ((this: internal.Notification, ev: Event) => any)
onerror: null | ((this: internal.Notification, ev: Event) => any)
onshow: null | ((this: internal.Notification, ev: Event) => any)
tag: string
title: string

Methods

  • addEventListener<K>(type: K, listener: ((this: internal.Notification, ev: NotificationEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void
  • addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • close(): void
  • Returns void

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • removeEventListener<K>(type: K, listener: ((this: internal.Notification, ev: NotificationEventMap[K]) => any), options?: boolean | EventListenerOptions): void
  • removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void

Generated using TypeDoc