ChatViewModel

第0步:获取得到token 第一步:初始化AK KIMCore.instance().init(AK); 第二步:连接 KIMCore.instance().connectWithToken 第三步:注册消息监听器 KIMCore.instance().addOnReceiveMessageListener 第四步:注册会话列表同步监听器 KIMCore.instance().addChatSyncServerListener 第五步:获取会话列表 KIMCore.instance().getChatList

Constructors

Link copied to clipboard
constructor(@NonNull application: Application)

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
annotation class Role

Functions

Link copied to clipboard
open fun boxInfo(boxType: Int): LiveData<KIMCoreBox>
Link copied to clipboard
open fun boxOpt(action: String, boxType: Int): MutableLiveData<Boolean>
Link copied to clipboard
Link copied to clipboard
open fun <T : Application?> getApplication(): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun leave(chatId: String): MutableLiveData<Boolean>
Link copied to clipboard
open fun load(box: Boolean)
Link copied to clipboard
open fun loadBox()
Link copied to clipboard
open fun loadMoreHistoryChats(boxType: Int, chatType: List<Integer>, param: KIMCoreChatPageParam, callback: IResultCallback<KIMCoreMoreChats>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun opt(action: String, chatId: String): MutableLiveData<String>
Link copied to clipboard
Link copied to clipboard
open fun setBoxType(boxType: Int)
Link copied to clipboard
open fun switchUserBoxStatus(boxType: Int, isDisable: Boolean): LiveData<String>
Link copied to clipboard
Link copied to clipboard