MessageButton

open class MessageButton : IPutIntoJson<JSONObject?> , IInAppMessageThemeable

MessageButton is a model for a styleable button containing text and a click action.

Constructors

MessageButton
Link copied to clipboard
fun MessageButton()
MessageButton
Link copied to clipboard
fun MessageButton(jsonObject: JSONObject, darkThemeObject: JSONObject? = null)
MessageButton
Link copied to clipboard
private fun MessageButton(jsonObject: JSONObject, darkThemeJsonObject: JSONObject?, id: Int, clickAction: ClickAction, uri: String?, text: String, @ColorInt() backgroundColor: Int, @ColorInt() textColor: Int, openUriInWebview: Boolean, @ColorInt() borderColor: Int)

Types

Companion
Link copied to clipboard
object Companion

Functions

enableDarkTheme
Link copied to clipboard
open override fun enableDarkTheme()
Instructs the IInAppMessage to apply any dark theme settings and override any existing values present on the IInAppMessage.
forJsonPut
Link copied to clipboard
open override fun forJsonPut(): JSONObject?
setClickBehavior
Link copied to clipboard
fun setClickBehavior(clickAction: ClickAction, uri: Uri? = null)

Properties

backgroundColor
Link copied to clipboard
var backgroundColor: Int
borderColor
Link copied to clipboard
var borderColor: Int
clickAction
Link copied to clipboard
var clickAction: ClickAction
darkTheme
Link copied to clipboard
private var darkTheme: MessageButtonTheme? = null
id
Link copied to clipboard
var id: Int
jsonObject
Link copied to clipboard
private var jsonObject: JSONObject? = null
openUriInWebview
Link copied to clipboard
var openUriInWebview: Boolean = false
stringId
Link copied to clipboard
val stringId: String
text
Link copied to clipboard
var text: String? = null
textColor
Link copied to clipboard
var textColor: Int
uri
Link copied to clipboard
var uri: Uri? = null