PushMessageData

@native @JSType
trait PushMessageData extends Object

The PushMessageData 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.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def arrayBuffer(): ArrayBuffer

Extracts the data as an ArrayBuffer object.

Extracts the data as an ArrayBuffer object.

def blob(): Blob

Extracts the data as a Blob object.

Extracts the data as a Blob object.

def json(): Any

Extracts the data as a JSON object.

Extracts the data as a JSON object.

def text(): String

Extracts the data as a plain text string.

Extracts the data as a plain text string.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object