NotificationOptions

@JSType
trait NotificationOptions extends Object
Companion:
object
class Object
trait Any
class Object
trait Matchable
class Any

Value members

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

@ExposedJSMember @JSOptional
var body: UndefOr[String]

The body property of the Notification interface indicates the body string of the notification.

The body property of the Notification interface indicates the body string of the notification.

@ExposedJSMember @JSOptional
var dir: UndefOr[String]

The dir property of the Notification interface indicates the text direction of the notification.

The dir property of the Notification interface indicates the text direction of the notification.

@ExposedJSMember @JSOptional
var icon: UndefOr[String]

The icon property of the Notification interface contains the URL of an icon to be displayed as part of the notification.

The icon property of the Notification interface contains the URL of an icon to be displayed as part of the notification.

@ExposedJSMember @JSOptional
var lang: UndefOr[String]

The lang property of the Notification interface indicates the text direction of the notification.

The lang property of the Notification interface indicates the text direction of the notification.

@ExposedJSMember @JSOptional
var noscreen: UndefOr[Boolean]

The noscreen property of the Notification interface specifies whether the notification firing should enable the device's screen or not.

The noscreen property of the Notification interface specifies whether the notification firing should enable the device's screen or not.

@ExposedJSMember @JSOptional
var onclick: UndefOr[Function1[Event, Any]]

The onclick property of the Notification interface specifies an event listener to receive click events. These events occur when the user clicks on a displayed Notification.

The onclick property of the Notification interface specifies an event listener to receive click events. These events occur when the user clicks on a displayed Notification.

@ExposedJSMember @JSOptional
var onerror: UndefOr[Function1[ErrorEvent, Any]]

The onerror property of the Notification interface specifies an event listener to receive error events. These events occur when something goes wrong with a Notification (in many cases an error preventing the notification from being displayed.)

The onerror property of the Notification interface specifies an event listener to receive error events. These events occur when something goes wrong with a Notification (in many cases an error preventing the notification from being displayed.)

@ExposedJSMember @JSOptional
var renotify: UndefOr[Boolean]

The renotify property of the Notification interface specifies whether the user should be notified after a new notification replaces an old one.

The renotify property of the Notification interface specifies whether the user should be notified after a new notification replaces an old one.

@ExposedJSMember @JSOptional
var silent: UndefOr[Boolean]

The silent property of the Notification interface specifies whether the notification should be silent, i.e. no sounds or vibrations should be issued, regardless of the device settings.

The silent property of the Notification interface specifies whether the notification should be silent, i.e. no sounds or vibrations should be issued, regardless of the device settings.

@ExposedJSMember @JSOptional
var sound: UndefOr[String]

The sound property of the Notification interface specifies the URL of an audio file to be played when the notification fires.

The sound property of the Notification interface specifies the URL of an audio file to be played when the notification fires.

@ExposedJSMember @JSOptional
var sticky: UndefOr[Boolean]

The sticky property of the Notification interface specifies whether the notification should be 'sticky', i.e. not easily clearable by the user.

The sticky property of the Notification interface specifies whether the notification should be 'sticky', i.e. not easily clearable by the user.

@ExposedJSMember @JSOptional
var tag: UndefOr[String]

The tag property of the Notification interface signifies an identifying tag for the notification.

The tag property of the Notification interface signifies an identifying tag for the notification.

The idea of notification tags is that more than one notification can share the same tag, linking them together. One notification can then be programmatically replaced with another to avoid the users' screen being filled up with a huge number of similar notifications.

@ExposedJSMember @JSOptional
var vibrate: UndefOr[Array[Double]]