Beacon Config Overrides
constructor(docsEnabled: Boolean? = null, messagingEnabled: Boolean? = null, chatEnabled: Boolean? = null, contactForm: ContactFormConfig? = null, color: String? = null, focusMode: FocusMode? = null, enablePreviousMessages: Boolean = true)
Parameters
docs Enabled
whether to show suggestions screen and allow Articles to be searched and viewed
messaging Enabled
allow users to contact via Beacon messaging contact form
chat Enabled
allow users contact using real time chat
contact Form
allows overriding whether to hide specific fields in the Beacon messaging contact form
color
override the Beacon color. Format #RRGGBB i.e #FF0000 for a red.
focus Mode
controls prominence of contact options to visitors.
enable Previous Messages
enable or disable Previous Messages in Beacon. Defaults to true.
constructor(docsEnabled: Boolean? = null, messagingEnabled: Boolean? = null, chatEnabled: Boolean? = null, contactForm: ContactFormConfigApi? = null, color: String? = null, focusMode: FocusMode? = null, enablePreviousMessages: Boolean = true)
Deprecated
Use the primary constructor with ContactFormConfig instead of ContactFormConfigApi
Replace with
import com.helpscout.beacon.model.ContactFormConfig
Content copied to clipboard
BeaconConfigOverrides(docsEnabled, messagingEnabled, chatEnabled, contactForm?.let { ContactFormConfig(it.showName, it.showSubject, it.allowAttachments, it.customFieldsEnabled) }, color, focusMode, enablePreviousMessages)Content copied to clipboard
Legacy constructor for backwards compatibility.