Popup windows.
Methods
-
(static) RequestPermission() → {Boolean}
-
This function requests notification permissions from a browser.
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 HeaderString A header for notification BodyString Body of notification. StickyInteger should notification be sticky until it's closed. IconString Path to the icon for the notification. ActionString Action to lead on click on notification. Returns:
True/false if notification is showed.- Type
- Boolean