DataCard

data class DataCard(    val title: String,     val subtitle: String? = null,     val media: List<String> = emptyList(),     val actions: List<ContentData.Action> = emptyList(),     val rawData: String = "") : ContentData

Includes a menu of up to 10 options, which offers a simple way for users to make a selection. Represents the twilio/card content type.

Constructors

Link copied to clipboard
fun DataCard(    title: String,     subtitle: String? = null,     media: List<String> = emptyList(),     actions: List<ContentData.Action> = emptyList(),     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 media: List<String>

URLs of the media to send with the 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.

Link copied to clipboard
val subtitle: String? = null

Subtitle of card.

Link copied to clipboard
val title: String

Title of card.