ChatboxConfiguration

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)

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.