@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="PushManager")
public class PushManager
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
PushManager() |
| Modifier and Type | Method and Description |
|---|---|
@JsNonNull Promise<PushSubscription> |
getSubscription()
The PushManager.getSubscription() method of the PushManager interface retrieves an existing push subscription.
|
@JsNonNull Promise<java.lang.String> |
permissionState()
The permissionState() method of the PushManager interface returns a Promise that resolves to a DOMString indicating the permission state of the push manager.
|
@JsNonNull Promise<java.lang.String> |
permissionState(PushSubscriptionOptionsInit options)
The permissionState() method of the PushManager interface returns a Promise that resolves to a DOMString indicating the permission state of the push manager.
|
@JsNonNull Promise<PushSubscription> |
subscribe()
The subscribe() method of the PushManager interface subscribes to a push service.
|
@JsNonNull Promise<PushSubscription> |
subscribe(PushSubscriptionOptionsInit options)
The subscribe() method of the PushManager interface subscribes to a push service.
|
static JsArray<java.lang.String> |
supportedContentEncodings()
The supportedContentEncodings read-only property of the PushManager interface returns an array of supported content codings that can be used to encrypt the payload of a push message.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@JsProperty(name="supportedContentEncodings") @Nonnull public static JsArray<java.lang.String> supportedContentEncodings()
public @JsNonNull Promise<PushSubscription> getSubscription()
public @JsNonNull Promise<java.lang.String> permissionState(@Nonnull PushSubscriptionOptionsInit options)
public @JsNonNull Promise<java.lang.String> permissionState()
public @JsNonNull Promise<PushSubscription> subscribe(@Nonnull PushSubscriptionOptionsInit options)
public @JsNonNull Promise<PushSubscription> subscribe()