discontinuedPackage js_bindings has been discontinued and replaced by typings.

PushSubscription class

Experimental: This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. The interface of the Push API provides a subcription's URL endpoint and allows unsubscription from a push service. An instance of this interface can be serialized.

Available extensions
Annotations
  • @experimental
  • @JS.new()
  • @staticInterop

Constructors

PushSubscription()
factory

Properties

endpoint → String

Available on PushSubscription, provided by the PropsPushSubscription extension

no setter
expirationTime → int?

Available on PushSubscription, provided by the PropsPushSubscription extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
options → PushSubscriptionOptions

Available on PushSubscription, provided by the PropsPushSubscription extension

no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getKey(PushEncryptionKeyName name) → ByteBuffer?

Available on PushSubscription, provided by the PropsPushSubscription extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() → PushSubscriptionJSON

Available on PushSubscription, provided by the PropsPushSubscription extension

toString() → String
A string representation of this object.
inherited
unsubscribe() → Future<bool>

Available on PushSubscription, provided by the PropsPushSubscription extension

Operators

operator ==(Object other) → bool
The equality operator.
inherited