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

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • new __type(): EventTarget
    • 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

    • event: Event

    Returns boolean

removeEventListener

Generated using TypeDoc