| 程序包 | 说明 |
|---|---|
| cn.leancloud.im.v2 | |
| cn.leancloud.im.v2.callback |
| 限定符和类型 | 方法和说明 |
|---|---|
static AVIMClient |
AVIMClient.getInstance(cn.leancloud.session.AVConnectionManager connectionManager,
String clientId,
AVInstallation installation)
get AVIMClient instance by clientId.
|
static AVIMClient |
AVIMClient.getInstance(AVUser user)
get AVIMClient instance by AVUser
|
static AVIMClient |
AVIMClient.getInstance(AVUser user,
String tag)
get AVIMClient instance by AVUser
|
static AVIMClient |
AVIMClient.getInstance(String clientId)
get AVIMClient instance by clientId.
|
static AVIMClient |
AVIMClient.getInstance(String clientId,
String tag)
get AVIMClient instance by clientId and tag.
|
static AVIMClient |
AVIMClient.peekInstance(String clientId)
peek AVIMClient instance by clientId.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AVIMConversationEventHandler.onBlocked(AVIMClient client,
AVIMConversation conversation,
String operator)
当前用户被加入黑名单通知处理函数
|
abstract void |
AVIMClientEventHandler.onClientOffline(AVIMClient client,
int code)
实现本方法以处理当前登录被踢下线的情况
|
abstract void |
AVIMClientEventHandler.onConnectionPaused(AVIMClient client)
实现本方法以处理网络断开事件
|
abstract void |
AVIMClientEventHandler.onConnectionResume(AVIMClient client)
实现本方法以处理网络恢复事件
|
void |
AVIMConversationEventHandler.onInfoChanged(AVIMClient client,
AVIMConversation conversation,
JSONObject attr,
String operator)
对话自身属性变更通知
|
abstract void |
AVIMConversationEventHandler.onInvited(AVIMClient client,
AVIMConversation conversation,
String operator)
实现本方法来处理当前用户被邀请到某个聊天对话事件
|
abstract void |
AVIMConversationEventHandler.onKicked(AVIMClient client,
AVIMConversation conversation,
String kickedBy)
实现本方法来处理当前用户被踢出某个聊天对话事件
|
void |
AVIMConversationEventHandler.onLastDeliveredAtUpdated(AVIMClient client,
AVIMConversation conversation)
实现本地方法来处理对方已经接收消息的通知
|
void |
AVIMConversationEventHandler.onLastReadAtUpdated(AVIMClient client,
AVIMConversation conversation)
实现本地方法来处理对方已经阅读消息的通知
|
void |
AVIMConversationEventHandler.onMemberBlocked(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String operator)
聊天室成员被加入黑名单通知处理函数
|
void |
AVIMConversationEventHandler.onMemberInfoUpdated(AVIMClient client,
AVIMConversation conversation,
AVIMConversationMemberInfo memberInfo,
List<String> updatedProperties,
String operator)
对话成员信息变更通知。
|
abstract void |
AVIMConversationEventHandler.onMemberJoined(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String invitedBy)
实现本方法以处理聊天对话中的参与者加入事件
|
abstract void |
AVIMConversationEventHandler.onMemberLeft(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String kickedBy)
实现本方法以处理聊天对话中的参与者离开事件
|
void |
AVIMConversationEventHandler.onMemberMuted(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String operator)
聊天室成员被禁言通知处理函数
|
void |
AVIMConversationEventHandler.onMemberUnblocked(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String operator)
聊天室成员被移出黑名单通知处理函数
|
void |
AVIMConversationEventHandler.onMemberUnmuted(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String operator)
聊天室成员被解除禁言通知处理函数
|
void |
AVIMMessageHandler.onMessage(AVIMMessage message,
AVIMConversation conversation,
AVIMClient client)
重载此方法来处理接收消息
|
void |
AVIMTypedMessageHandler.onMessage(T message,
AVIMConversation conversation,
AVIMClient client)
重载此方法来处理接收消息
|
abstract void |
MessageHandler.onMessage(T message,
AVIMConversation conversation,
AVIMClient client) |
void |
AVIMConversationEventHandler.onMessageRecalled(AVIMClient client,
AVIMConversation conversation,
AVIMMessage message)
实现本地方法来处理消息的撤回事件
|
void |
AVIMMessageHandler.onMessageReceipt(AVIMMessage message,
AVIMConversation conversation,
AVIMClient client)
重载此方法来处理消息回执
|
void |
AVIMTypedMessageHandler.onMessageReceipt(T message,
AVIMConversation conversation,
AVIMClient client)
重载此方法来处理消息回执
|
abstract void |
MessageHandler.onMessageReceipt(T message,
AVIMConversation conversation,
AVIMClient client) |
void |
AVIMMessageHandler.onMessageReceiptEx(AVIMMessage message,
String operator,
AVIMConversation conversation,
AVIMClient client)
重载此方法来处理消息回执
|
void |
AVIMTypedMessageHandler.onMessageReceiptEx(T message,
String operator,
AVIMConversation conversation,
AVIMClient client) |
abstract void |
MessageHandler.onMessageReceiptEx(T message,
String operator,
AVIMConversation conversation,
AVIMClient client) |
void |
AVIMConversationEventHandler.onMessageUpdated(AVIMClient client,
AVIMConversation conversation,
AVIMMessage message)
实现本地方法来处理消息的更新事件
|
void |
AVIMConversationEventHandler.onMuted(AVIMClient client,
AVIMConversation conversation,
String operator)
当前用户被禁言通知处理函数
|
void |
AVIMConversationEventHandler.onUnblocked(AVIMClient client,
AVIMConversation conversation,
String operator)
当前用户被移出黑名单通知处理函数
|
void |
AVIMConversationEventHandler.onUnmuted(AVIMClient client,
AVIMConversation conversation,
String operator)
当前用户被解除禁言通知处理函数
|
void |
AVIMConversationEventHandler.onUnreadMessagesCountUpdated(AVIMClient client,
AVIMConversation conversation)
实现本地方法来处理未读消息数量的通知
|
static AVIMConversation |
AVIMConversation.parseFromJson(AVIMClient client,
Map<String,Object> jsonObj)
parse AVIMConversation from jsonObject
|
static void |
AVIMMessageManagerHelper.processMessage(AVIMMessage message,
int convType,
AVIMClient client,
boolean hasMore,
boolean isTransient) |
protected static void |
AVIMMessageManager.processMessage(AVIMMessage message,
int convType,
AVIMClient client,
boolean hasMore,
boolean isTransient) |
static void |
AVIMMessageManagerHelper.processMessageReceipt(AVIMMessage message,
AVIMClient client,
String from) |
protected static void |
AVIMMessageManager.processMessageReceipt(AVIMMessage message,
AVIMClient client,
String from) |
| 构造器和说明 |
|---|
AVIMChatRoom(AVIMClient client,
String conversationId) |
AVIMConversation(AVIMClient client,
List<String> members,
Map<String,Object> attributes,
boolean isTransient) |
AVIMConversation(AVIMClient client,
String conversationId) |
AVIMConversationsQuery(AVIMClient client) |
AVIMServiceConversation(AVIMClient client,
String conversationId) |
AVIMTemporaryConversation(AVIMClient client,
String conversationId) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
AVIMClientCallback.done(AVIMClient client,
AVIMException e) |
protected void |
AVIMClientCallback.internalDone0(AVIMClient client,
AVException avException) |
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.