CallToAction

data class CallToAction(    val body: String,     val actions: List<ContentData.Action>,     val rawData: String = "") : ContentData

Buttons let recipients tap to trigger actions such as launching a website or making a phone call. Represents the twilio/call-to-action content type.

Constructors

Link copied to clipboard
fun CallToAction(    body: String,     actions: List<ContentData.Action>,     rawData: String = "")

Properties

Link copied to clipboard
val actions: List<ContentData.Action>

Buttons that recipients can tap on to act on the message.

Link copied to clipboard
val body: String

The text of the message you want to send. This is included as a regular text message.

Link copied to clipboard
open override val rawData: String

Full data as stringified JSON. Can be used for new content types and fields which are not supported in the current version of Conversations SDK.