Liking cljdoc? Tell your friends :D

web.PushManager

The PushManager interface of the Push API provides a way to receive from third-party servers as well as request URLs for push notifications.

The PushManager interface of the Push API provides a way to receive
from third-party servers as well as request URLs for push notifications.
raw docstring

get-subscriptioncljs

(get-subscription this & args)

Method.

The PushManager.getSubscription() method of the web.PushManager retrieves an existing push subscription.

​PushManager.getSubscription().then(function(pushSubscription) { ... } );

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

Method.

The PushManager.getSubscription() method of the `web.PushManager`
retrieves an existing push subscription.

`​PushManager.getSubscription().then(function(pushSubscription) { ... } );`

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

has-permissioncljs

(has-permission this & args)

Method.

The PushManager.hasPermission() method of the web.PushManager returns a web.Promise that resolves to the PushPermissionStatus the requesting webapp, which will be one of granted, denied, default.

​PushManager.hasPermission().then(function(pushPermissionStatus) { ... } );

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

Method.

The PushManager.hasPermission() method of the `web.PushManager`
returns a `web.Promise` that resolves to the PushPermissionStatus
the requesting webapp, which will be one of granted, denied,
default.

`​PushManager.hasPermission().then(function(pushPermissionStatus) { ... } );`

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

permission-statecljs

(permission-state this options)

Method.

The permissionState() method of the web.PushManager interface a web.Promise that resolves to a dom.DOMString indicating permission state of the push manager. Possible values are 'prompt', or 'granted'.

PushManager.permissionState(options).then(function(PushMessagingState) { ... });

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

Method.

The permissionState() method of the `web.PushManager` interface
a `web.Promise` that resolves to a `dom.DOMString` indicating
permission state of the push manager. Possible values are 'prompt',
or 'granted'.

`PushManager.permissionState(options).then(function(PushMessagingState) { ... });`

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

registercljs

(register this)

Method.

The register method is used to ask the system to request a new for notifications. This method has been superceded by web.PushManager.subscribe().

var request = navigator.push.register();

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

Method.

The register method is used to ask the system to request a new
for notifications. This method has been superceded by `web.PushManager.subscribe()`.

`var request = navigator.push.register();`

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

registrationscljs

(registrations this)

Method.

The registrations method is used to ask the system about existing endpoint registrations.

var request = navigator.push.registrations();

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

Method.

The registrations method is used to ask the system about existing
endpoint registrations.

`var request = navigator.push.registrations();`

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

set-supported-content-encodings!cljs

(set-supported-content-encodings! this val)

Property.

The supportedContentEncodings read-only property of the web.PushManager returns an array of supported content codings that can be used encrypt the payload of a push message.

var encodings[] = PushManager.supportedContentEncodings

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

Property.

The supportedContentEncodings read-only property of the `web.PushManager`
returns an array of supported content codings that can be used
encrypt the payload of a push message.

`var encodings[] = PushManager.supportedContentEncodings`

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

subscribecljs

(subscribe this options)

Method.

The subscribe() method of the web.PushManager interface subscribes a push service.

​PushManager.subscribe(options).then(function(pushSubscription) { ... } );

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

Method.

The subscribe() method of the `web.PushManager` interface subscribes
a push service.

`​PushManager.subscribe(options).then(function(pushSubscription) { ... } );`

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

supported-content-encodingscljs

(supported-content-encodings this)

Property.

The supportedContentEncodings read-only property of the web.PushManager returns an array of supported content codings that can be used encrypt the payload of a push message.

var encodings[] = PushManager.supportedContentEncodings

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

Property.

The supportedContentEncodings read-only property of the `web.PushManager`
returns an array of supported content codings that can be used
encrypt the payload of a push message.

`var encodings[] = PushManager.supportedContentEncodings`

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

unregistercljs

(unregister this push-endpoint)

Method.

The unregister() method was used to ask the system to unregister delete the specified endpoint. In the updated API, a subscription can be unregistered via the web.PushSubscription.unsubscribe()

var request = navigator.push.unregister(pushEndpoint);

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

Method.

The unregister() method was used to ask the system to unregister
delete the specified endpoint. In the updated API, a subscription
can be unregistered via the `web.PushSubscription.unsubscribe()`

`var request = navigator.push.unregister(pushEndpoint);`

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

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

× close