Package | Description |
---|---|
cn.leancloud.im.v2 | |
cn.leancloud.im.v2.callback |
Modifier and Type | Method and Description |
---|---|
static LCIMClient |
LCIMClient.getInstance(cn.leancloud.session.LCConnectionManager connectionManager,
String clientId,
LCInstallation installation)
get IMClient instance by clientId.
|
static LCIMClient |
LCIMClient.getInstance(LCUser user)
get IMClient instance by LCUser
|
static LCIMClient |
LCIMClient.getInstance(LCUser user,
String tag)
get IMClient instance by LCUser
|
static LCIMClient |
LCIMClient.getInstance(String clientId)
get IMClient instance by clientId.
|
static LCIMClient |
LCIMClient.getInstance(String clientId,
String tag)
get IMClient instance by clientId and tag.
|
static LCIMClient |
LCIMClient.peekInstance(String clientId)
peek IMClient instance by clientId.
|
Modifier and Type | Method and Description |
---|---|
void |
LCIMConversationEventHandler.onBlocked(LCIMClient client,
LCIMConversation conversation,
String operator)
当前用户被加入黑名单通知处理函数
|
abstract void |
LCIMClientEventHandler.onClientOffline(LCIMClient client,
int code)
实现本方法以处理当前登录被踢下线的情况
|
abstract void |
LCIMClientEventHandler.onConnectionPaused(LCIMClient client)
实现本方法以处理网络断开事件
|
abstract void |
LCIMClientEventHandler.onConnectionResume(LCIMClient client)
实现本方法以处理网络恢复事件
|
void |
LCIMConversationEventHandler.onInfoChanged(LCIMClient client,
LCIMConversation conversation,
JSONObject attr,
String operator)
对话自身属性变更通知
|
abstract void |
LCIMConversationEventHandler.onInvited(LCIMClient client,
LCIMConversation conversation,
String operator)
实现本方法来处理当前用户被邀请到某个聊天对话事件
|
abstract void |
LCIMConversationEventHandler.onKicked(LCIMClient client,
LCIMConversation conversation,
String kickedBy)
实现本方法来处理当前用户被踢出某个聊天对话事件
|
void |
LCIMConversationEventHandler.onLastDeliveredAtUpdated(LCIMClient client,
LCIMConversation conversation)
实现本地方法来处理对方已经接收消息的通知
|
void |
LCIMConversationEventHandler.onLastReadAtUpdated(LCIMClient client,
LCIMConversation conversation)
实现本地方法来处理对方已经阅读消息的通知
|
void |
LCIMConversationEventHandler.onMemberBlocked(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String operator)
聊天室成员被加入黑名单通知处理函数
|
void |
LCIMConversationEventHandler.onMemberInfoUpdated(LCIMClient client,
LCIMConversation conversation,
LCIMConversationMemberInfo memberInfo,
List<String> updatedProperties,
String operator)
对话成员信息变更通知。
常见的有:某成员权限发生变化(如,被设为管理员等)。
|
abstract void |
LCIMConversationEventHandler.onMemberJoined(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String invitedBy)
实现本方法以处理聊天对话中的参与者加入事件
|
abstract void |
LCIMConversationEventHandler.onMemberLeft(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String kickedBy)
实现本方法以处理聊天对话中的参与者离开事件
|
void |
LCIMConversationEventHandler.onMemberMuted(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String operator)
聊天室成员被禁言通知处理函数
|
void |
LCIMConversationEventHandler.onMemberUnblocked(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String operator)
聊天室成员被移出黑名单通知处理函数
|
void |
LCIMConversationEventHandler.onMemberUnmuted(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String operator)
聊天室成员被解除禁言通知处理函数
|
void |
LCIMMessageHandler.onMessage(LCIMMessage message,
LCIMConversation conversation,
LCIMClient client)
重载此方法来处理接收消息
|
void |
LCIMTypedMessageHandler.onMessage(T message,
LCIMConversation conversation,
LCIMClient client)
重载此方法来处理接收消息
|
abstract void |
MessageHandler.onMessage(T message,
LCIMConversation conversation,
LCIMClient client) |
void |
LCIMConversationEventHandler.onMessageRecalled(LCIMClient client,
LCIMConversation conversation,
LCIMMessage message)
实现本地方法来处理消息的撤回事件
|
void |
LCIMMessageHandler.onMessageReceipt(LCIMMessage message,
LCIMConversation conversation,
LCIMClient client)
重载此方法来处理消息回执
|
void |
LCIMTypedMessageHandler.onMessageReceipt(T message,
LCIMConversation conversation,
LCIMClient client)
重载此方法来处理消息回执
|
abstract void |
MessageHandler.onMessageReceipt(T message,
LCIMConversation conversation,
LCIMClient client) |
void |
LCIMMessageHandler.onMessageReceiptEx(LCIMMessage message,
String operator,
LCIMConversation conversation,
LCIMClient client)
重载此方法来处理消息回执
|
void |
LCIMTypedMessageHandler.onMessageReceiptEx(T message,
String operator,
LCIMConversation conversation,
LCIMClient client) |
abstract void |
MessageHandler.onMessageReceiptEx(T message,
String operator,
LCIMConversation conversation,
LCIMClient client) |
void |
LCIMConversationEventHandler.onMessageUpdated(LCIMClient client,
LCIMConversation conversation,
LCIMMessage message)
实现本地方法来处理消息的更新事件
|
void |
LCIMConversationEventHandler.onMuted(LCIMClient client,
LCIMConversation conversation,
String operator)
当前用户被禁言通知处理函数
|
void |
LCIMConversationEventHandler.onUnblocked(LCIMClient client,
LCIMConversation conversation,
String operator)
当前用户被移出黑名单通知处理函数
|
void |
LCIMConversationEventHandler.onUnmuted(LCIMClient client,
LCIMConversation conversation,
String operator)
当前用户被解除禁言通知处理函数
|
void |
LCIMConversationEventHandler.onUnreadMessagesCountUpdated(LCIMClient client,
LCIMConversation conversation)
实现本地方法来处理未读消息数量的通知
|
static LCIMConversation |
LCIMConversation.parseFromJson(LCIMClient client,
Map<String,Object> jsonObj)
parse LCIMConversation from jsonObject
|
protected static void |
LCIMMessageManager.processMessage(LCIMMessage message,
int convType,
LCIMClient client,
boolean hasMore,
boolean isTransient) |
static void |
LCIMMessageManagerHelper.processMessage(LCIMMessage message,
int convType,
LCIMClient client,
boolean hasMore,
boolean isTransient) |
protected static void |
LCIMMessageManager.processMessageReceipt(LCIMMessage message,
LCIMClient client,
String from) |
static void |
LCIMMessageManagerHelper.processMessageReceipt(LCIMMessage message,
LCIMClient client,
String from) |
Constructor and Description |
---|
LCIMChatRoom(LCIMClient client,
String conversationId) |
LCIMConversation(LCIMClient client,
List<String> members,
Map<String,Object> attributes,
boolean isTransient) |
LCIMConversation(LCIMClient client,
String conversationId) |
LCIMConversationsQuery(LCIMClient client) |
LCIMServiceConversation(LCIMClient client,
String conversationId) |
LCIMTemporaryConversation(LCIMClient client,
String conversationId) |
Modifier and Type | Method and Description |
---|---|
abstract void |
LCIMClientCallback.done(LCIMClient client,
LCIMException e) |
protected void |
LCIMClientCallback.internalDone0(LCIMClient client,
LCException LCException) |
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.