Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Index

Properties

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • Returns EventTarget

  • prototype: EventTarget

actions

actions: ReadonlyArray<NotificationAction>

badge

badge: string

body

body: string

data

data: any

dir

icon

icon: string

image

image: string

lang

lang: string

onclick

onclick: function | null

onclose

onclose: function | null

onerror

onerror: function | null

onshow

onshow: function | null

renotify

renotify: boolean

requireInteraction

requireInteraction: boolean

silent

silent: boolean

tag

tag: string

timestamp

timestamp: number

title

title: string

vibrate

vibrate: ReadonlyArray<number>

Methods

addEventListener

close

  • close(): void
  • Returns void

dispatchEvent

  • 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

    Returns boolean

removeEventListener

Generated using TypeDoc