public class FlexMessage extends MessageData
MessageSendRequest object.
To create a FlexMessage object, firstly create a container, and then pass it with the
altText parameter to the initializer.
For more information, please refer to Flex messages.| Constructor and Description |
|---|
FlexMessage(java.lang.String altText,
FlexMessageContainer contents)
Constructs a
FlexMessage object. |
| Modifier and Type | Method and Description |
|---|---|
Type |
getType() |
JSONObject |
toJsonObject() |
public FlexMessage(@NonNull
java.lang.String altText,
@NonNull
FlexMessageContainer contents)
FlexMessage object.altText - Required. The alternative text to be shown when the user device doesn't
support Flex Messages.contents - Required. The Flex Message.@NonNull public Type getType()
getType in class MessageData@NonNull
public JSONObject toJsonObject()
throws JSONException
toJsonObject in interface JsonabletoJsonObject in class MessageDataJSONException