Home > @twilio/voice-react-native-sdk > CallMessage
The constituent values of a Call Message.
Signature:
export interface CallMessage
Property | Type | Description |
---|---|---|
content | any | The content of the message. This value should match the content type parameter.See CallMessage.contentType for more information. |
contentType? | string | (Optional) The content type of the message. This value should accurately describe the content of the message. The following values are accepted:- "application/json"If no value is defined, then the default value of "application/json" will be used.If the contentType of the message is "application/json", the content of the message may be a JS object. |
messageType | string | The message type. The following values are accepted:- "user-defined-message" |