Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard
lateinit var shared: ChatKindlySDK

Functions

Link copied to clipboard
fun callHandover(handoverListener: CallbackHandover)

Handovers the call from the chatBot.

Link copied to clipboard

Clears the current context of the chat.

Link copied to clipboard

Clearing trigger dialog param call

Link copied to clipboard
fun close()

Closes the chat.

Link copied to clipboard
fun displayChat(context: Context)
Link copied to clipboard
fun endChat()

End the chat.

Link copied to clipboard
fun launchChat(context: Context, triggerDialogueId: String? = null)

Opens the chat bot.

Link copied to clipboard
fun setNewContext(context: Map<String, String>)

Sets a new context for the chat.

Link copied to clipboard
fun start(application: Application, botKey: String, languageCode: String = "en", authTokenCallback: <Error class: unknown class>? = null)
Link copied to clipboard
fun triggerDialog(id: String, displayChat: Boolean? = null, context: Context? = null)

Internet is connected and the chat already begin this one is for calling trigger dialog