Class Notification

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    public class Notification
    extends EventTarget
    A Notification.
    See Also:
    MDN - Notification, Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject

        org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int maxActions
      The maximum number of actions supported.
      • Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject

        CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
      • Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable

        NOT_FOUND
    • Constructor Summary

      Constructors 
      Constructor Description
      Notification()  
    • Field Detail

      • maxActions

        public static final int maxActions
        The maximum number of actions supported.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Notification

        public Notification()
    • Method Detail

      • jsConstructor

        public void jsConstructor​(java.lang.String title)
        JavaScript constructor.
        Parameters:
        title - the title
      • getPermission

        public static java.lang.String getPermission​(org.htmlunit.corejs.javascript.Scriptable thisObj)
        Returns the permission static property.
        Parameters:
        thisObj - the scriptable
        Returns:
        the permission static property
      • requestPermission

        public static void requestPermission()
        Asks the user for permission.