Popup windows.
- Source:
Methods
-
(static) RequestPermission() → {Boolean}
-
This function requests notification permissions from a browser.
- Source:
Returns:
True/false if notifications have been allowed.- Type
- Boolean
-
(static) Show(Header, Body, Sticky, Icon, Action) → {Boolean}
-
This function opens a popup window. Every popup is of a specific type and there can only be one window of a type at a time.
Parameters:
Name Type Description Header
String A header for notification Body
String Body of notification. Sticky
Integer should notification be sticky until it's closed. Icon
String Path to the icon for the notification. Action
String Action to lead on click on notification. - Source:
Returns:
True/false if notification is showed.- Type
- Boolean