BeaconDatastore

interface BeaconDatastore

Used to persist Beacon related config this is intended to be internal only

Functions

addSpecialAttributes
Link copied to clipboard
abstract fun addSpecialAttributes(company: String?, jobTitle: String?, avatar: String?)
clear
Link copied to clipboard
abstract fun clear()
clearContactFormDraft
Link copied to clipboard
abstract fun clearContactFormDraft(invokedByDeveloper: Boolean = false)
clearPrefilledForm
Link copied to clipboard
abstract fun clearPrefilledForm()
clearSessionAttributes
Link copied to clipboard
abstract fun clearSessionAttributes()
getBeaconUser
Link copied to clipboard
abstract fun getBeaconUser(): BeaconUser
getConfigWithOverrides
Link copied to clipboard
abstract fun getConfigWithOverrides(): BeaconConfigApi
How the config should always be retrieved
login
Link copied to clipboard
abstract fun login(email: String, name: String?)
Should only be called from Beacon.
logout
Link copied to clipboard
abstract fun logout()
setInitialValues
Link copied to clipboard
abstract fun setInitialValues()
userHasEmail
Link copied to clipboard
abstract fun userHasEmail(): Boolean
Has an email been saved.

Properties

agents
Link copied to clipboard
abstract var agents: List<BeaconAgent>
appId
Link copied to clipboard
abstract var appId: String
authType
Link copied to clipboard
abstract val authType: BeaconAuthType
avatar
Link copied to clipboard
abstract var avatar: String?
baseDocsUrl
Link copied to clipboard
abstract val baseDocsUrl: String?
beaconConfigOverrides
Link copied to clipboard
abstract var beaconConfigOverrides: BeaconConfigOverrides
beaconId
Link copied to clipboard
abstract var beaconId: String
chatConfig
Link copied to clipboard
abstract val chatConfig: ChatConfigApi
chatEnabled
Link copied to clipboard
abstract val chatEnabled: Boolean
company
Link copied to clipboard
abstract var company: String?
companyName
Link copied to clipboard
abstract val companyName: String?
contactFormDraft
Link copied to clipboard
abstract var contactFormDraft: PreFilledForm
contactFormOptions
Link copied to clipboard
abstract val contactFormOptions: ContactFormConfigApi
displayOptions
Link copied to clipboard
abstract val displayOptions: DisplayConfigApi
docsEnabled
Link copied to clipboard
abstract val docsEnabled: Boolean
email
Link copied to clipboard
abstract var email: String
enablePreviousMessages
Link copied to clipboard
abstract val enablePreviousMessages: Boolean
hasPreviousConversations
Link copied to clipboard
abstract var hasPreviousConversations: Boolean
Is there any previous conversations - Used UI to hide/show or Nav to different pages
installId
Link copied to clipboard
abstract var installId: String
isVisitor
Link copied to clipboard
abstract var isVisitor: Boolean
Boolean to check if the customer entered their own email (true) or (false) if the email was added by the developer via Beacon.
jobTitle
Link copied to clipboard
abstract var jobTitle: String?
logsEnabled
Link copied to clipboard
abstract var logsEnabled: Boolean
messagingEnabled
Link copied to clipboard
abstract val messagingEnabled: Boolean
name
Link copied to clipboard
abstract var name: String?
overrideChatEnabled
Link copied to clipboard
abstract var overrideChatEnabled: Boolean
overrideDocsEnabled
Link copied to clipboard
abstract var overrideDocsEnabled: Boolean
overrideMessagingEnabled
Link copied to clipboard
abstract var overrideMessagingEnabled: Boolean
preFilledForm
Link copied to clipboard
abstract var preFilledForm: PreFilledForm
pushToken
Link copied to clipboard
abstract var pushToken: String
pushTokenRegistered
Link copied to clipboard
abstract var pushTokenRegistered: Boolean
rawConfig
Link copied to clipboard
abstract var rawConfig: BeaconConfigApi
beacon config from api - Use getConfigWithOverrides() to ensure local overrides applied
sessionAttributes
Link copied to clipboard
abstract var sessionAttributes: Map<String, String>
shouldIdentifyCustomer
Link copied to clipboard
abstract var shouldIdentifyCustomer: Boolean
Indicates whether a call to IdentifyCustomer API is due
showPrefilledCustomFields
Link copied to clipboard
abstract var showPrefilledCustomFields: Boolean
signature
Link copied to clipboard
abstract var signature: String
suggestionArticles
Link copied to clipboard
abstract var suggestionArticles: List<SuggestedArticle>
userAttributes
Link copied to clipboard
abstract var userAttributes: MutableMap<String, String>