package js.html
extends EventTarget
Available on jsThe
Notificationinterface of the Notifications API is used to configure and display desktop notifications to the user.Documentation Notification by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (title:String, ?options:NotificationOptions)Throws:
null |
DOMError |
|---|
read only body:StringThe body string of the notification as specified in the options parameter of the constructor.
read only data:DynamicReturns a structured clone of the notification’s data.
read only dir:NotificationDirectionThe text direction of the notification as specified in the options parameter of the constructor.
read only icon:StringThe URL of the image used as an icon of the notification as specified in the options parameter of the constructor.
read only lang:StringThe language code of the notification as specified in the options parameter of the constructor.
onclick:FunctionA handler for the click event. It is triggered each time the user clicks on the notification.
onclose:FunctionA handler for the close event. It is triggered when the user closes the notification.
onerror:FunctionA handler for the error event. It is triggered each time the notification encounters an error.
onshow:FunctionA handler for the show event. It is triggered when the notification is displayed.
read only tag:StringThe ID of the notification (if any) as specified in the options parameter of the constructor.
read only title:StringThe title of the notification as specified in the first parameter of the constructor.
close ():VoidProgrammatically closes a notification.
static read only permission:NotificationPermission
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Notification.html