class KustomerCore

KustomerCore must be initialized in your Main Application class only. This will ensure that the SDK will always be initialized even if the Client App is killed in Background and restarted by Android.

Create a KustomerCoreOptions object using KustomerCoreOptions.Builder to override any settings with in the sdk

If you don’t want to override any settings and use the default ones, you can skip creating this object

val kustomerCoreOptions = KustomerCoreOptions.Builder()
.setBusinessScheduleId("<business_schedule_id>") //override business schedule
.setLogLevel(KusLogOptions.KusLogOptionAll) //set log options

Add the following lines of code to your onCreate method in your Application class:

"API_KEY", // read it from gradle properties
kustomerCoreOptions //Optional parameter

Note: If you don’t have an Application class, you must create one to make sure Kustomer Core is always initialized properly.

See also




Name Summary
Companion [androidJvm]
object Companion


Name Summary
changeActiveAssistant [androidJvm]
suspend fun changeActiveAssistant(activeAssistant: KusActiveAssistant): KusResult<KusAssistant>?
fun changeActiveAssistant(activeAssistant: KusActiveAssistant, onResponse: (KusResult<KusAssistant>?) -> Unit)
getContext [androidJvm]
fun getContext(): Context
isLoggedIn [androidJvm]
fun isLoggedIn(userEmail: String? = null, userId: String? = null): KusResult<Boolean>
kusChatProvider [androidJvm]
fun kusChatProvider(): KusChatProvider
kusKbProvider [androidJvm]
fun kusKbProvider(): KusKbProvider
kusPushRegistrationProvider [androidJvm]
fun kusPushRegistrationProvider(): KusPushRegistrationProvider
logOut [androidJvm]
fun logOut()
overrideAssistant [androidJvm]
suspend fun overrideAssistant(assistantId: String): KusResult<KusAssistant>
fun overrideAssistant(assistantId: String, onResponse: (KusResult<KusAssistant>) -> Unit)
overrideBrand [androidJvm]
suspend fun overrideBrand(brandId: String): KusResult<KusChatSetting>
fun overrideBrand(brandId: String, onResponse: (KusResult<KusChatSetting>) -> Unit)
overrideBusinessSchedule [androidJvm]
suspend fun overrideBusinessSchedule(scheduleId: String): KusResult<KusSchedule>
fun overrideBusinessSchedule(scheduleId: String, onResponse: (KusResult<KusSchedule>) -> Unit)