@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="PushSubscription")
public class PushSubscription
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
PushSubscription() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
endpoint()
The endpoint read-only property of the PushSubscription interface returns a USVString containing the endpoint associated with the push subscription.
|
int |
expirationTime()
The expirationTime read-only property of the PushSubscription interface returns a DOMHighResTimeStamp of the subscription expiration time associated with the push subscription, if there is one, or null otherwise.
|
ArrayBuffer |
getKey(java.lang.String name)
The getKey() method of the PushSubscription interface returns an ArrayBuffer representing a client public key, which can then be sent to a server and used in encrypting push message data.
|
PushSubscriptionOptions |
options()
The options read-only property of the PushSubscription interface is an object containing containing the options used to create the subscription.
|
PushSubscriptionJSON |
toJSON()
The toJSON() method of the PushSubscription interface is a standard serializer: it returns a JSON representation of the subscription properties, providing a useful shortcut.
|
Promise<java.lang.Boolean> |
unsubscribe()
The unsubscribe() method of the PushSubscription interface returns a Promise that resolves to a Boolean when the current subscription is successfully unsubscribed.
|
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="endpoint") @Nonnull public java.lang.String endpoint()
@JsProperty(name="expirationTime") @Nullable public int expirationTime()
@JsProperty(name="options") @Nonnull public PushSubscriptionOptions options()
@Nullable public ArrayBuffer getKey(@PushEncryptionKeyName @Nonnull java.lang.String name)
@Nonnull public PushSubscriptionJSON toJSON()
@Nonnull public Promise<java.lang.Boolean> unsubscribe()