-
Notifications
You must be signed in to change notification settings - Fork 0
NinchatSDKEventListener
Pallab Gain edited this page Mar 26, 2024
·
2 revisions
Using NinchatSDKEventListener
, we can listen to SDK events. It is useful when you want to update your UI based on Ninchat SDK events like when a ninchat session successfully established, failed or some other relivant error(s) occured.
private val eventListener: NinchatSDKEventListener = object : NinchatSDKEventListener() {
override fun onSessionInitiated(sessionCredentials: NinchatSessionCredentials) {
Log.d(">>", sessionCredentials.toString())
}
override fun onSessionInitFailed() {
Log.d(">>", "session failed")
}
override fun onSessionError(error: Exception) {
Log.d(">>", error.localizedMessage)
}
override fun onEvent(params: Props, payload: Payload) {
Log.d("On Event >>", params.toString())
}
// From SDK 0.17.1
override fun onActivityDropped() {
Log.e(">>", "activity dropped")
}
}
- Home
- Installation
- SDK Permission
- How to integrate the SDK
-
Overriding SDK assets
- Old resources doc ( < SDK 0.10.0 )
- Queue list view
- In Queue view element
- Command / Chat view elements
- Review / Rating view
- Dialogue(s)
- Titlebar
- Questionnaire
- Buttons
- Example Integration
- Building the Go library
- Building SDK .aar
- Contact Us
- Licenses