Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Notification

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

Hierarchy

Index

Properties

EventTarget

EventTarget: { constructor: any; prototype: EventTarget }

Type declaration

Readonly actions

Readonly badge

badge: string

Readonly body

body: string

Readonly data

data: any

Readonly dir

Readonly icon

icon: string

Readonly image

image: string

Readonly lang

lang: string

onclick

onclick: ((this: Notification, ev: Event) => any) | null

onclose

onclose: ((this: Notification, ev: Event) => any) | null

onerror

onerror: ((this: Notification, ev: Event) => any) | null

onshow

onshow: ((this: Notification, ev: Event) => any) | null

Readonly renotify

renotify: boolean

Readonly requireInteraction

requireInteraction: boolean

Readonly silent

silent: boolean

Readonly tag

tag: string

Readonly timestamp

timestamp: number

Readonly title

title: string

Readonly 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