HatangConfig
data class HatangConfig(val siteId: String, val appKey: String, val baseUrl: String = HatangChat.DEFAULT_BASE_URL, val locale: HatangLocale? = null, val themeMode: HatangChatThemeMode = HatangChatThemeMode.SITE, val theme: HatangChatTheme? = null, val darkTheme: HatangChatTheme? = null, val strings: Map<HatangLocale, HatangChatStrings>? = null, val autoConnect: Boolean = true, val openOnProactiveMessage: Boolean = true, val logger: HatangLogger = HatangLogger.SILENT, val appInfo: HatangAppInfo? = null, val commerce: HatangCommerce = HatangCommerce.STANDARD)
Settings for HatangChat.configure.
Constructors
Link copied to clipboard
constructor(siteId: String, appKey: String, baseUrl: String = HatangChat.DEFAULT_BASE_URL, locale: HatangLocale? = null, themeMode: HatangChatThemeMode = HatangChatThemeMode.SITE, theme: HatangChatTheme? = null, darkTheme: HatangChatTheme? = null, strings: Map<HatangLocale, HatangChatStrings>? = null, autoConnect: Boolean = true, openOnProactiveMessage: Boolean = true, logger: HatangLogger = HatangLogger.SILENT, appInfo: HatangAppInfo? = null, commerce: HatangCommerce = HatangCommerce.STANDARD)
Properties
Link copied to clipboard
App and device details override (default: read from the package manager and Build).
Link copied to clipboard
Bootstrap and connect right away.
Link copied to clipboard
How purchases from chat cards are handled.
Link copied to clipboard
Dark theme override (default: from the site's brand colour).
Link copied to clipboard
Force a language (otherwise: the stored choice, the site default, then the device).
Link copied to clipboard
Where the SDK logs (see logcatLogger()).
Link copied to clipboard
Open the chat when the team starts a conversation with "open on the visitor's device".
Link copied to clipboard
Wording overrides per locale, e.g. mapOf(HatangLocale.VI to HatangChatStrings.VI.copy(placeholder = "Hỏi chúng tôi…")).
Link copied to clipboard
Light theme override (default: from the site's brand colour).
Link copied to clipboard
How light or dark is chosen.