ChatKindlySDK

open class ChatKindlySDK(application: Application, botKey: String, languageCode: String = "en", authTokenCallback: <Error class: unknown class>? = null)

The ChatKindlySDK class is responsible for the initialisation SDK

Parameters

application
  • base class for maintaining global application state.

botKey
  • chatBot key

languageCode
  • code language

Constructors

Link copied to clipboard
constructor(application: Application, botKey: String, languageCode: String = "en", authTokenCallback: <Error class: unknown class>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var onKindlyInterfaceSet: (kindlyInterface: KindlySDKInteraction?) -> Unit?

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
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 triggerDialog(id: String, displayChat: Boolean? = null, context: Context? = null)