ListPicker

data class ListPicker(val body: String, val button: String, val items: List<ContentData.ListItem>, 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/list-picker content type.

Constructors

Link copied to clipboard
constructor(body: String, button: String, items: List<ContentData.ListItem>, rawData: String = "")

Properties

Link copied to clipboard

The text of the message you want to send. This is rendered as the body of the message.

Link copied to clipboard

Display value for the primary button.

Link copied to clipboard

ListItem objects displayed in the list.

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.