-
Notifications
You must be signed in to change notification settings - Fork 0
NinchatConfiguration
Pallab edited this page Apr 14, 2021
·
5 revisions
Using NinchatConfiguration
, we can assign a custom/dynamic username, and other attribuets to the client session.
val ninchatConfiguration = NinchatConfiguration.Builder()
.setUserName("A dynamic user name")
.create()
val builder = NinchatSession.Builder(applicationContext, configurationKey)
builder.setConfiguration(ninchatConfiguration)
.....
.....
val ninchatSession = builder.create()
In order to pass a dynamic session bound custom user name in our SDK, we can call setUserName
method with a custom name in our NinchatConfiguration
builder object.
val builder = NinchatConfiguration.Builder()
builder.setUserName("A dynamic user name")
val ninchatConfiguration = builder.create()
We can override ninchat chat background using our own asset. The chat background must need to be a bitmap drawable image. In order to do that, we can simply pass our bitmap image asset id to NinchatConfiguration
builder object.
val builder = NinchatConfiguration.Builder()
builder.setNinchatChatBackground(R.drawable.our_new_background_asset)
val ninchatConfiguration = builder.create()
- Example of assets files
- 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