Action

interface Action

The following parameters are used as an array in the CallToAction.actions and DataCard.actions.

Types

Link copied to clipboard
data class Other(val rawData: String = "") : ContentData.Action

Used for unknown action types, which aren't present in the current version of Conversations SDK.

Link copied to clipboard
data class Phone(    val title: String,     val phone: String,     val rawData: String = "") : ContentData.Action

Shows a button that calls a phone number.

Link copied to clipboard
data class Reply(    val title: String,     val id: String? = null,     val index: Long,     val rawData: String = "") : ContentData.Action

Shows a button that sends back a predefined text.

Link copied to clipboard
data class Url(    val title: String,     val url: String,     val rawData: String = "") : ContentData.Action

Shows a button that redirects recipient to predefined URL.

Properties

Link copied to clipboard
abstract val rawData: String

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

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard