ChatboxConfiguration

data class ChatboxConfiguration @JvmOverloads constructor(var mainColor: Int = 0xFF1BC74E.toInt(), var fontPath: String? = null, var incomingMessageBackgroundColor: Int? = null, var incomingMessageTextColor: Int? = null, var incomingMessageStrokeColor: Int? = null, var outgoingMessageBackgroundColor: Int? = mainColor, var outgoingMessageTextColor: Int? = null, var outgoingMessageStrokeColor: Int? = null, var accentColor: Int? = mainColor, var toolbarBackgroundColor: Int? = mainColor, var toolbarMainColor: Int? = null, var toolbarTitle: String? = null, var incomingMessageAvatar: IncomingMessageAvatar? = null, var automaticMessage: String? = null, var gdprMessage: String? = null)

Data object that holds the configuration of the Chatbox.

Parameters

mainColor

This parameter is deprecated, please use outgoingMessageBackgroundColor & accentColor instead.

fontPath

Path of the font file. The font file should be included in the assets folder within the App (e.g.: /fonts/helvetica-bold.ttf).

incomingMessageBackgroundColor

Color of message bubble for incoming (operator) messages.

incomingMessageTextColor

Color of message text for incoming (operator) messages

incomingMessageStrokeColor

Color of message border for incoming (operator) messages

outgoingMessageBackgroundColor

Color of message bubble for outgoing (visitor) messages.

outgoingMessageTextColor

Color of message text for outgoing (visitor) messages

outgoingMessageStrokeColor

Color of message border for outgoing (visitor) messages

accentColor

Color used for message controls (quick answers, file messages, send button...)

toolbarBackgroundColor

Background color of the Chatbox Toolbar.

toolbarMainColor

Foreground (text/icons) color of the Chatbox Toolbar.

toolbarTitle

Title displayed in the Chatbox Toolbar (should be localized).

incomingMessageAvatar

Avatar of the operator (either an picture url or a local image).

automaticMessage

Message to display to invite the user to start chatting (should be localized).

gdprMessage

Message presenting the user with the GDPR consent choices.

Constructors

Link copied to clipboard
constructor(mainColor: Int = 0xFF1BC74E.toInt(), fontPath: String? = null, incomingMessageBackgroundColor: Int? = null, incomingMessageTextColor: Int? = null, incomingMessageStrokeColor: Int? = null, outgoingMessageBackgroundColor: Int? = mainColor, outgoingMessageTextColor: Int? = null, outgoingMessageStrokeColor: Int? = null, accentColor: Int? = mainColor, toolbarBackgroundColor: Int? = mainColor, toolbarMainColor: Int? = null, toolbarTitle: String? = null, incomingMessageAvatar: IncomingMessageAvatar? = null, automaticMessage: String? = null, gdprMessage: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard