Package 

Class CallMessage


  • 
    public class CallMessage
    
                        

    Objects 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.

    • Method Detail

      • 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.