Button

abstract class Button : PluginElement

Button component. Buttons should report postbacks when clicking the button. Postback might contain a deepLink which is extracted for convenience.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val deepLink: String?

Deeplink extracted from postback if applicable. Not all buttons have deepLinks. DeepLink is associated with a specific app. For an example, you might want to use it to redirect the user directly to a Facebook profile or perform another similar action. Or it can be just a plain URL.

Link copied to clipboard
abstract val displayInApp: Boolean

Flag indicating that deeplink contents should be displayed in the context of application. This will be true only for URL deeplink.

Link copied to clipboard
abstract val postback: String?

Metadata associated with the button which should be returned to the server once the button is pressed. Send an OutboundMessage message with button text and the postback values.

Link copied to clipboard
abstract val text: String

Text to display in place of the button. Text is unformatted and localized, according as per agent console settings.