Class: TextMessage

TextMessage

A TextMessage object is used to send a message that contains a string as its payload.

new TextMessage()

This method is not meant to be used directly. Creates a TextMessage object that is used to send a message that contains a string as its payload.

Extends

Method Summary

getText
Returns the text that will be sent as the payload of this message.
setText
Sets the string that must be sent as the payload of this message.

Inherited Methods

Method Detail

getText() → {String}

Returns the text that will be sent as the payload of this message.
Returns:
Type
String

setText(text)

Sets the string that must be sent as the payload of this message.
Parameters:
Name Type Description
text String text to be sent as payload.