ChatboxConfiguration

data class ChatboxConfiguration @JvmOverloads constructor(var primaryColor: Int? = null, var primaryTextColor: Int? = null, var secondaryColor: Int? = null, var secondaryTextColor: Int? = null, var font: Typeface? = null, var title: String = "", var avatar: Drawable? = null, var automaticMessage: String? = null, var gdprMessage: String? = null)

Encapsulate all the configuration options that can be applied to the chatbox.

Usage: instantiate a default configuration, set the properties you want, and apply them to the chatbox:

var configuration = ChatboxConfiguration()
configuration.primaryColor = Color.RED
IAdvizeSDK.chatboxController.setupChatbox(configuration)

Constructors

Link copied to clipboard
constructor(primaryColor: Int? = null, primaryTextColor: Int? = null, secondaryColor: Int? = null, secondaryTextColor: Int? = null, font: Typeface? = null, title: String = "", avatar: Drawable? = null, automaticMessage: String? = null, gdprMessage: String? = null)

Properties

Link copied to clipboard

Content of the first automatic message that invites your visitor to start asking a question. Should be localized.

Link copied to clipboard

Avatar displayed in the Chatbox header (above the title).

Link copied to clipboard

Font that will be used to display text in all UI elements of the iAdvize SDK. Default value is #FFFFFF in Light Mode and#0A0A09 in Dark Mode.

Link copied to clipboard

Content of the first GDPR message which invites your visitor to accept or decline the GDPR consent. Should be localized.

Link copied to clipboard

Primary color used in the Chatbox. This color is mainly used for visitor messages background.

Link copied to clipboard

Primary text color used in the Chatbox. This color is mainly used for texts displayed above the primaryColor, including in visitor messages.

Link copied to clipboard

Secondary color used in the Chatbox. This color is mainly used for the Send button and other controls displayed in the Chatbox.

Link copied to clipboard

Secondary text color used in the Chatbox. This color is mainly used for texts displayed above the secondaryColor, including in buttons.

Link copied to clipboard

Title displayed in the Chatbox header (below the avatar).