Liking cljdoc? Tell your friends :D

web.other.Notification

The Notification interface of the Notifications API is used to and display desktop notifications to the user.

The Notification interface of the Notifications API is used to
and display desktop notifications to the user.
raw docstring

actionscljs

(actions this)

Property.

[Read Only]

The actions read-only property of the web.other.Notification returns the list of web.other.NotificationAction objects set the actions option when creating the notification using the Notification()

var actions[] = Notification.actions;

See also: https://developer.mozilla.org/en-US/docs/Web/API/notification/actions

Property.

[Read Only]

The actions read-only property of the `web.other.Notification`
returns the list of `web.other.NotificationAction` objects set
the actions option when creating the notification using the `Notification()`

`var actions[] = Notification.actions;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/notification/actions`
sourceraw docstring

badgecljs

(badge this)

Property.

[Read Only]

The badge property of the web.other.Notification interface the URL of the image used to represent the notification when is not enough space to display the notification itself.

var url = Notification.badge

See also: https://developer.mozilla.org/en-US/docs/Web/API/notification/badge

Property.

[Read Only]

The badge property of the `web.other.Notification` interface
the URL of the image used to represent the notification when
is not enough space to display the notification itself.

`var url = Notification.badge`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/notification/badge`
sourceraw docstring

bodycljs

(body this)

Property.

[Read Only]

The body read-only property of the web.other.Notification interface the body string of the notification, as specified in the body of the Notification() constructor.

var body = Notification.body;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/body

Property.

[Read Only]

The body read-only property of the `web.other.Notification` interface
the body string of the notification, as specified in the body
of the `Notification()` constructor.

`var body = Notification.body;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/body`
sourceraw docstring

closecljs

(close this)

Method.

The close() method of the web.other.Notification interface used to close a previously displayed notification.

Notification.close();

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/close

Method.

The close() method of the `web.other.Notification` interface
used to close a previously displayed notification.

`Notification.close();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/close`
sourceraw docstring

datacljs

(data this)

Property.

[Read Only]

The data read-only property of the web.other.Notification interface a structured clone of the notification's data, as specified in data option of the Notification() constructor.

var data = Notification.data;

See also: https://developer.mozilla.org/en-US/docs/Web/API/notification/data

Property.

[Read Only]

The data read-only property of the `web.other.Notification` interface
a structured clone of the notification's data, as specified in
data option of the `Notification()` constructor.

`var data = Notification.data;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/notification/data`
sourceraw docstring

dircljs

(dir this)

Property.

[Read Only]

The dir read-only property of the web.other.Notification interface the text direction of the notification, as specified in the dir of the Notification() constructor.

var direction = Notification.dir;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/dir

Property.

[Read Only]

The dir read-only property of the `web.other.Notification` interface
the text direction of the notification, as specified in the dir
of the `Notification()` constructor.

`var direction = Notification.dir;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/dir`
sourceraw docstring

iconcljs

(icon this)

Property.

[Read Only]

The icon read-only property of the web.other.Notification interface the URL of an icon to be displayed as part of the notification, specified in the icon option of the Notification() constructor.

var icon = Notification.icon;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/icon

Property.

[Read Only]

The icon read-only property of the `web.other.Notification` interface
the URL of an icon to be displayed as part of the notification,
specified in the icon option of the `Notification()` constructor.

`var icon = Notification.icon;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/icon`
sourceraw docstring

imagecljs

(image this)

Property.

[Read Only]

The image read-only property of the web.other.Notification contains the URL of an image to be displayed as part of the notification

var image = Notification.image;

See also: https://developer.mozilla.org/en-US/docs/Web/API/notification/image

Property.

[Read Only]

The image read-only property of the `web.other.Notification`
contains the URL of an image to be displayed as part of the notification

`var image = Notification.image;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/notification/image`
sourceraw docstring

langcljs

(lang this)

Property.

[Read Only]

The lang read-only property of the web.other.Notification interface the text direction of the notification, as specified in the lang of the Notification() constructor.

var language = Notification.lang;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/lang

Property.

[Read Only]

The lang read-only property of the `web.other.Notification` interface
the text direction of the notification, as specified in the lang
of the `Notification()` constructor.

`var language = Notification.lang;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/lang`
sourceraw docstring

onclickcljs

(onclick this)

Property.

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

`Notification.onclick = function(event) { ... };

The default behavior is to move the focus to the viewport of the notification's related browsing context. If you don't want that behaviour, call preventDefault() on the event object.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclick

Property.

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

`Notification.onclick = function(event) { ... };

The default behavior is to move the focus to the viewport of the notification's related browsing context. If you don't want that behaviour, call preventDefault() on the event object.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclick`
sourceraw docstring

onclosecljs

(onclose this)

Property.

The onclose property of the web.other.Notification interface an event listener to receive close events. These events occur a web.other.Notification is closed.

Notification.onclose = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclose

Property.

The onclose property of the `web.other.Notification` interface
an event listener to receive close events. These events occur
a `web.other.Notification` is closed.

`Notification.onclose = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclose`
sourceraw docstring

onerrorcljs

(onerror this)

Property.

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

Notification.onerror = EventListener;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/onerror

Property.

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

`Notification.onerror = EventListener;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/onerror`
sourceraw docstring

onshowcljs

(onshow this)

Property.

The onshow property of the web.other.Notification interface an event listener to receive show events. These events occur a web.other.Notification is displayed.

Notification.onshow = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/onshow

Property.

The onshow property of the `web.other.Notification` interface
an event listener to receive show events. These events occur
a `web.other.Notification` is displayed.

`Notification.onshow = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/onshow`
sourceraw docstring

permissioncljs

(permission this)

Property.

[Read Only]

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

var permission = Notification.permission;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/permission

Property.

[Read Only]

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

`var permission = Notification.permission;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/permission`
sourceraw docstring

renotifycljs

(renotify this)

Property.

[Read Only]

The renotify read-only property of the web.other.Notification specifies whether the user should be notified after a new notification an old one, as specified in the renotify option of the Notification()

var renotify = Notification.renotify;

See also: https://developer.mozilla.org/en-US/docs/Web/API/notification/renotify

Property.

[Read Only]

The renotify read-only property of the `web.other.Notification`
specifies whether the user should be notified after a new notification
an old one, as specified in the renotify option of the `Notification()`

`var renotify = Notification.renotify;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/notification/renotify`
sourceraw docstring

request-permissioncljs

(request-permission this & args)

Method.

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

`The latest spec has updated this method to a promise-based syntax that works like this:

Notification.requestPermission().then(function(permission) { ... });

Previously, the syntax was based on a simple callback; this version is now deprecated:

Notification.requestPermission(callback);

Safari Version 12.0.3 still uses callback to get the permission.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission

Method.

The requestPermission() method of the `web.other.Notification`
requests permission from the user for the current origin to display

`The latest spec has updated this method to a promise-based syntax that works like this:



Notification.requestPermission().then(function(permission) { ... });

Previously, the syntax was based on a simple callback; this version is now deprecated:



Notification.requestPermission(callback);

Safari Version 12.0.3 still uses callback to get the permission.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission`
sourceraw docstring

require-interactioncljs

(require-interaction this)

Property.

[Read Only]

The requireInteraction read-only property of the web.other.Notification returns a js.Boolean indicating that a notification should active until the user clicks or dismisses it, rather than closing

function spawnNotification(theTitle,theBody,shouldRequireInteraction) { var options = { body: theBody, requireInteraction: shouldRequireInteraction } var n = new Notification(theTitle,options); }

See also: https://developer.mozilla.org/en-US/docs/Web/API/notification/requireInteraction

Property.

[Read Only]

The requireInteraction read-only property of the `web.other.Notification`
returns a `js.Boolean` indicating that a notification should
active until the user clicks or dismisses it, rather than closing

`function spawnNotification(theTitle,theBody,shouldRequireInteraction) {
var options = {
body: theBody,
requireInteraction: shouldRequireInteraction
}
var n = new Notification(theTitle,options);
}`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/notification/requireInteraction`
sourceraw docstring

set-onclick!cljs

(set-onclick! this val)

Property.

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

`Notification.onclick = function(event) { ... };

The default behavior is to move the focus to the viewport of the notification's related browsing context. If you don't want that behaviour, call preventDefault() on the event object.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclick

Property.

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

`Notification.onclick = function(event) { ... };

The default behavior is to move the focus to the viewport of the notification's related browsing context. If you don't want that behaviour, call preventDefault() on the event object.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclick`
sourceraw docstring

set-onclose!cljs

(set-onclose! this val)

Property.

The onclose property of the web.other.Notification interface an event listener to receive close events. These events occur a web.other.Notification is closed.

Notification.onclose = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclose

Property.

The onclose property of the `web.other.Notification` interface
an event listener to receive close events. These events occur
a `web.other.Notification` is closed.

`Notification.onclose = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclose`
sourceraw docstring

set-onerror!cljs

(set-onerror! this val)

Property.

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

Notification.onerror = EventListener;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/onerror

Property.

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

`Notification.onerror = EventListener;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/onerror`
sourceraw docstring

set-onshow!cljs

(set-onshow! this val)

Property.

The onshow property of the web.other.Notification interface an event listener to receive show events. These events occur a web.other.Notification is displayed.

Notification.onshow = function() { ... };

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/onshow

Property.

The onshow property of the `web.other.Notification` interface
an event listener to receive show events. These events occur
a `web.other.Notification` is displayed.

`Notification.onshow = function() { ... };`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/onshow`
sourceraw docstring

silentcljs

(silent this)

Property.

[Read Only]

The silent read-only property of the web.other.Notification specifies whether the notification should be silent, i.e., no or vibrations should be issued, regardless of the device settings. is specified in the renotify option of the Notification() constructor.

var silent = Notification.silent;

See also: https://developer.mozilla.org/en-US/docs/Web/API/notification/silent

Property.

[Read Only]

The silent read-only property of the `web.other.Notification`
specifies whether the notification should be silent, i.e., no
or vibrations should be issued, regardless of the device settings.
is specified in the renotify option of the `Notification()` constructor.

`var silent = Notification.silent;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/notification/silent`
sourceraw docstring

tagcljs

(tag this)

Property.

[Read Only]

The tag read-only property of the web.other.Notification interface an identifying tag for the notification, as specified in the option of the Notification() constructor.

var tag = Notification.tag;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Notification/tag

Property.

[Read Only]

The tag read-only property of the `web.other.Notification` interface
an identifying tag for the notification, as specified in the
option of the `Notification()` constructor.

`var tag = Notification.tag;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Notification/tag`
sourceraw docstring

timestampcljs

(timestamp this)

Property.

[Read Only]

The timestamp read-only property of the web.other.Notification returns a DOMTimeStamp, as specified in the timestamp option the Notification() constructor.

var timestamp = Notification.timestamp;

See also: https://developer.mozilla.org/en-US/docs/Web/API/notification/timestamp

Property.

[Read Only]

The timestamp read-only property of the `web.other.Notification`
returns a DOMTimeStamp, as specified in the timestamp option
the `Notification()` constructor.

`var timestamp = Notification.timestamp;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/notification/timestamp`
sourceraw docstring

titlecljs

(title this)

Property.

[Read Only]

The title read-only property of the web.other.Notification indicates the title of the notification, as specified in the parameter of the Notification() constructor.

var title = Notification.title;

See also: https://developer.mozilla.org/en-US/docs/Web/API/notification/title

Property.

[Read Only]

The title read-only property of the `web.other.Notification`
indicates the title of the notification, as specified in the
parameter of the `Notification()` constructor.

`var title = Notification.title;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/notification/title`
sourceraw docstring

vibratecljs

(vibrate this)

Property.

[Read Only]

The vibrate read-only property of the web.other.Notification specifies a a vibration pattern for the device's vibration hardware emit when the notification fires. This is specified in the vibrate of the Notification() constructor.

var vibrate = Notification.vibrate;

See also: https://developer.mozilla.org/en-US/docs/Web/API/notification/vibrate

Property.

[Read Only]

The vibrate read-only property of the `web.other.Notification`
specifies a a vibration pattern for the device's vibration hardware
emit when the notification fires. This is specified in the vibrate
of the `Notification()` constructor.

`var vibrate = Notification.vibrate;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/notification/vibrate`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close