-
public class CallMessageObjects that represent messages that can be sent and received via and Call.CallMessageListener respectively. The size limit of the message content is 10 KB. If a messages is attempted to be sent via with message content that exceeds the size limitation, the callback will be triggered and no error will be logged in the Twilio developer console.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCallMessage.BuilderBuilds new CallMessage.
-
Field Summary
Fields Modifier and Type Field Description private final StringmessageTypeprivate final Stringcontent
-
Method Summary
Modifier and Type Method Description StringgetMessageType()Returns the message type string. StringgetContent()Returns he content body of the message. StringgetMessageContentType()Returns the MIME type for the message. StringgetVoiceEventSID()Returns the unique identifier of the message. -
-
Method Detail
-
getMessageType
@NonNull() String getMessageType()
Returns the message type string.
-
getContent
@NonNull() String getContent()
Returns he content body of the message. The format of the message body must match the contenttype. A CallMessage with content that does not match the content type will not resultin the onMessageFailure callback being invoked and will instead generate an error in your Twilio developer console.For example, a call message with content type "application/json" but with the content "HelloWorld", which is not a valid JSON object, will result in such error.
-
getMessageContentType
@NonNull() String getMessageContentType()
Returns the MIME type for the message. Currently the only supported type is"application/json", which is also the default value.
-
getVoiceEventSID
@NonNull() String getVoiceEventSID()
Returns the unique identifier of the message.
-
-
-
-