Class Notification

java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
All Implemented Interfaces:
Serializable, 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:
  • Field Details

    • maxActions

      public static final int maxActions
      The maximum number of actions supported.
      See Also:
  • Constructor Details

    • Notification

      public Notification()
  • Method Details

    • jsConstructor

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

      public static 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.