Liking cljdoc? Tell your friends :D

web.NotificationEvent

The parameter passed into the web.onnotificationclick handler, NotificationEvent interface represents a notification click event is dispatched on the web.ServiceWorkerGlobalScope of a web.ServiceWorker.

The parameter passed into the `web.onnotificationclick` handler,
NotificationEvent interface represents a notification click event
is dispatched on the `web.ServiceWorkerGlobalScope` of a `web.ServiceWorker`.
raw docstring

actioncljs

(action this)

Property.

Returns the string ID of the notification button the user clicked. value returns an empty string if the user clicked the notification other than an action button, or the notification does not have button. The notification id is set during the creation of the via the actions array attribute and can't be modified unless notification is replaced.

See also: https://developer.mozilla.org/en-US/docs/Web/API/NotificationEvent/action

Property.

Returns the string ID of the notification button the user clicked.
value returns an empty string if the user clicked the notification
other than an action button, or the notification does not have
button. The notification id is set during the creation of the
via the actions array attribute and can't be modified unless
notification is replaced.

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

constructorcljs

Constructor.

The NotificationEvent() constructor creates a new web.NotificationEvent object.

type TBD NotificationEventInit Optional A dictionary object containing a web.Notification object to be used as the notification the event is dispatched on. In later drafts of the specification, this parameter is not optional.

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

Constructor.

The NotificationEvent() constructor creates a new `web.NotificationEvent` object.

type
TBD
NotificationEventInit Optional
A dictionary object containing a `web.Notification` object to be used as the notification the event is dispatched on. In later drafts of the specification, this parameter is not optional.

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

notificationcljs

(notification this)

Property.

The notification read-only property of the web.NotificationEvent returns the instance of the web.Notification that was clicked fire the event. The web.Notification provides read-only access many properties that were set at the instantiation time of the such as tag and data attributes that allow you to store information defered use in the notificationclick event.

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

Property.

The notification read-only property of the `web.NotificationEvent`
returns the instance of the `web.Notification` that was clicked
fire the event. The `web.Notification` provides read-only access
many properties that were set at the instantiation time of the
such as tag and data attributes that allow you to store information
defered use in the notificationclick event.

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

set-action!cljs

(set-action! this val)

Property.

Returns the string ID of the notification button the user clicked. value returns an empty string if the user clicked the notification other than an action button, or the notification does not have button. The notification id is set during the creation of the via the actions array attribute and can't be modified unless notification is replaced.

See also: https://developer.mozilla.org/en-US/docs/Web/API/NotificationEvent/action

Property.

Returns the string ID of the notification button the user clicked.
value returns an empty string if the user clicked the notification
other than an action button, or the notification does not have
button. The notification id is set during the creation of the
via the actions array attribute and can't be modified unless
notification is replaced.

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

set-notification!cljs

(set-notification! this val)

Property.

The notification read-only property of the web.NotificationEvent returns the instance of the web.Notification that was clicked fire the event. The web.Notification provides read-only access many properties that were set at the instantiation time of the such as tag and data attributes that allow you to store information defered use in the notificationclick event.

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

Property.

The notification read-only property of the `web.NotificationEvent`
returns the instance of the `web.Notification` that was clicked
fire the event. The `web.Notification` provides read-only access
many properties that were set at the instantiation time of the
such as tag and data attributes that allow you to store information
defered use in the notificationclick event.

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

wait-untilcljs

(wait-until this promise)

Method.

The extendableEvent.waitUntil() method tells the event dispatcher work is ongoing. It can also be used to detect whether that work successful. In service workers, waitUntil() tells the browser work is ongoing until the promise settles, and it shouldn't terminate service worker if it wants that work to complete.

event.waitUntil(promise)

See also: https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/waitUntil

Method.

The extendableEvent.waitUntil() method tells the event dispatcher
work is ongoing. It can also be used to detect whether that work
successful. In service workers, waitUntil() tells the browser
work is ongoing until the promise settles, and it shouldn't terminate
service worker if it wants that work to complete.

`event.waitUntil(promise)`

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

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

× close