NotificationOptions

@deprecated("all members of NotificationOptions are deprecated", "2.0.0")
Companion:
class
Deprecated
class Object
trait Matchable
class Any

Value members

Deprecated methods

@deprecated("use `new NotificationOptions { ... }` instead", "2.0.0") @inline
def apply(body: UndefOr[String], dir: UndefOr[String], icon: UndefOr[String], lang: UndefOr[String], noscreen: UndefOr[Boolean], renotify: UndefOr[Boolean], silent: UndefOr[Boolean], sound: UndefOr[String], sticky: UndefOr[Boolean], tag: UndefOr[String], onclick: UndefOr[Function1[Event, Any]], onerror: UndefOr[Function1[ErrorEvent, Any]], vibrate: UndefOr[Array[Double]]): NotificationOptions

Construct a new NotificationOptions

Construct a new NotificationOptions

Value parameters:
body

The body text of the notification.

dir

The text direction of the notification.

icon

The icon URL of the notification.

lang

The text direction of the notification.

noscreen

Boolean indicating if notification firing should enable the device's screen or not

renotify

Boolean indicating whether the user should be notified after a new notification replaces an old one.

silent

Boolean indicating specifies whether the notification should be silent, i.e. no sounds or vibrations should be issued, regardless of the device settings

sound

The URL of an audio file to be played when the notification fires.

sticky

Boolean indicating whether the notification should be 'sticky', i.e. not easily clearable by the user.

tag

A text identifying tag for the notification.

vibrate

The vibration pattern for hardware to emit

Returns:

a new NotificationOptions

Deprecated