Live Chat SDK Kotlin
Configuration
implementation(files("libs/dolphin-live-chat.aar"))Create Instance
package com.imi.dolphin.livechat.DolphinLiveChatFactory;
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
EventBus.getDefault().register(this)
val dolphinLiveChat : DolphinLiveChat = DolphinLiveChatFactory.create()
val dolphinCore : DolphinCore = DolphinCore(
clientId = <CLIENT_ID>,
clientSecret = <CLIENT_SECRET>,
channelUrl = <CHANNEL_URL>
)
dolphinLiveChat.init(dolphinCore = dolphinCore)
}
}Connect to Server
Nama
Deskripsi
Event Handler
Receive Message
Send Message
Send Media Message
Binaries
Last updated
Was this helpful?