nsISupports
Last changed in Gecko 46.0 (Firefox 46.0 / Thunderbird 46.0 / SeaMonkey 2.43)nsIPushMessage
is the subject of a push-message
observer notification.
This interface resembles PushMessageData
from the Push API.
DOMString text(); |
jsval json(); |
void binary([optional] out uint32_t dataLen, [array, retval, size_is(dataLen)] out uint8_t data); |
Extracts the message data as a UTF-8 text string.
DOMString text();
None.
Parses the message data as JSON.
jsval json();
None.
Extracts the message data as a byte array.
void binary( [optional] out uint32_t dataLen, [array, retval, size_is(dataLen)] out uint8_t data );
dataLen
data
dataLen
and data
are out parameters. When called from JavaScript, nsIPushMessage.binary()
returns data
. Please see Method parameters in XPIDL for more details on using out parameters in JavaScript.