Package com.helpscout.beacon.model

Types

BeaconConfigOverrides
Link copied to clipboard
data class BeaconConfigOverrides @JvmOverloads() constructor(docsEnabled: Boolean?, messagingEnabled: Boolean?, chatEnabled: Boolean?, contactForm: ContactFormConfigApi?, color: String?, focusMode: FocusMode?, enablePreviousMessages: Boolean)
BeaconConfigOverrides allows you to override certain data provided by the Beacon Builder on Help Scout
BeaconScreens
Link copied to clipboard
enum BeaconScreens : Enum<BeaconScreens>
BeaconScreens allows developers to choose which screen to open when the Beacon is launched
BeaconUser
Link copied to clipboard
data class BeaconUser(email: String, name: String?, company: String?, jobTitle: String?, avatar: String?, attributes: Map<String, String>)
FocusMode
Link copied to clipboard
enum FocusMode : Enum<FocusMode>
Messaging mode
PreFilledForm
Link copied to clipboard
data class PreFilledForm @JvmOverloads() constructor(name: String, subject: String, message: String, customFieldValues: Map<Int, String>, attachments: List<String>, email: String)
Pre filled details for the Messaging Contact form.
SerializableSuggestedArticle
Link copied to clipboard
data class SerializableSuggestedArticle(@Json(name = idid: String?, @Json(name = urlurl: String?, @Json(name = titletitle: String?)
Internal class used only for serialising SuggestedArticle overrides.
SuggestedArticle
Link copied to clipboard
interface SuggestedArticle
SuggestedArticle used to override the suggested articles/Instant answers from the Beacon APISuggestedArticle used to be a Kotlin Sealed class however it caused issues for Java consumers due to lack of surrounding class.

Functions

colorOnlyBeaconConfigOverrides
Link copied to clipboard
fun colorOnlyBeaconConfigOverrides(overrideColor: String): BeaconConfigOverrides
Helper function is you just want to override the Beacon color
emptyBeaconConfigOverrides
Link copied to clipboard
fun emptyBeaconConfigOverrides(): BeaconConfigOverrides
Helper function to create an empty overrides ideal if you want to reset any overrides you've set.

Properties

EMPTY_PREFILLED_FORM
Link copied to clipboard
val EMPTY_PREFILLED_FORM: PreFilledForm
Helper to create a empty PreFilledForm useful for resetting your prefill options.