addButton

Creates a button with the given data

Parameters

button

The data to create the button with


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

Adds a button component to the message.

Parameters

label

The label of the button.

style

The style of the button. {@link ButtonStyle}

onPress

Callback for when the button is pressed, passing the message as an argument.