ButtonsAPI

object ButtonsAPI

Adds methods for creating button components

Types

Link copied to clipboard
data class ButtonData(val label: String, val style: ButtonStyle, val onPress: (Message, FragmentActivity) -> Unit)

Stores data about a button

Functions

Link copied to clipboard

Creates a button with the given data

fun Message.addButton(label: String, style: ButtonStyle, onPress: (Message, FragmentActivity) -> Unit)

Adds a button component to the message.