Notification

@native @JSGlobal @JSType
object Notification extends Object

Implicit imports for the notification api.

https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API

Companion:
class
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def requestPermission(callback: Function1[String, Any]): Unit

The requestPermission() method of the Notification interface requests permission from the user for the current origin to display notifications.

The requestPermission() method of the Notification interface requests permission from the user for the current origin to display notifications.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

val permission: String

The permission read-only property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.

The permission read-only property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.