package js.html.push
Available on js
The PushMessageData interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats.
Documentation PushMessageData by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
arrayBuffer():ArrayBufferExtracts the data as an ArrayBuffer object.
Throws:
null |
DOMError |
|---|
blob():BlobExtracts the data as a Blob object.
Throws:
null |
DOMError |
|---|
json():DynamicExtracts the data as a JSON object.
Throws:
null |
DOMError |
|---|
text():StringExtracts the data as a plain text string.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/push/PushMessageData.html