PushMessageData class

Experimental: This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. The interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats. Unlike the similar methods in the Fetch API, which only allow the method to be invoked once, these methods can be called multiple times. Messages received through the Push API are sent encrypted by push services and then automatically decrypted by browsers before they are made accessible through the methods of the interface.

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

Constructors

PushMessageData()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

arrayBuffer() ByteBuffer

Available on PushMessageData, provided by the PropsPushMessageData extension

blob() Blob

Available on PushMessageData, provided by the PropsPushMessageData extension

json() → dynamic

Available on PushMessageData, provided by the PropsPushMessageData extension

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

Available on PushMessageData, provided by the PropsPushMessageData extension

toString() String
A string representation of this object.
inherited

Operators

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