notification

Overview

The Notification interface of the Notifications API is used to configure and display desktop notifications to the user.

Location

Required Methods


close

Programmatically closes a notification instance.

 

method close: dynamic

 

dynamic close()

 

func close() -> dynamic

 

dynamic close()

 

Function close() As dynamic

requestPermission

Requests permission from the user to display notifications.

 

method requestPermission(parcallback: dynamic): dynamic

 

dynamic requestPermission(dynamic parcallback)

 

func requestPermission(_ parcallback: dynamic) -> dynamic

 

dynamic requestPermission(dynamic parcallback)

 

Function requestPermission(parcallback As dynamic) As dynamic

Parameters:

  • parcallback: