@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 |
|---|---|
Promise<PushSubscription> |
getSubscription()
The PushManager.getSubscription() method of the PushManager interface retrieves an existing push subscription.
|
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.
|
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.
|
Promise<PushSubscription> |
subscribe()
The subscribe() method of the PushManager interface subscribes to a push service.
|
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, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@JsProperty(name="supportedContentEncodings") @Nonnull public static JsArray<java.lang.String> supportedContentEncodings()
@Nonnull public Promise<PushSubscription> getSubscription()
@Nonnull public Promise<java.lang.String> permissionState(@Nonnull PushSubscriptionOptionsInit options)
@Nonnull public Promise<java.lang.String> permissionState()
@Nonnull public Promise<PushSubscription> subscribe(@Nonnull PushSubscriptionOptionsInit options)
@Nonnull public Promise<PushSubscription> subscribe()