类的使用
cn.leancloud.im.v2.LCIMClient
-
使用LCIMClient的程序包 程序包 说明 cn.leancloud.im.v2 cn.leancloud.im.v2.callback -
-
cn.leancloud.im.v2中LCIMClient的使用
返回LCIMClient的cn.leancloud.im.v2中的方法 修饰符和类型 方法 说明 static LCIMClientLCIMClient. getInstance(LCUser user)get IMClient instance by LCUserstatic LCIMClientLCIMClient. getInstance(LCUser user, java.lang.String tag)get IMClient instance by LCUserstatic LCIMClientLCIMClient. getInstance(cn.leancloud.session.LCConnectionManager connectionManager, java.lang.String clientId, LCInstallation installation)get IMClient instance by clientId.static LCIMClientLCIMClient. getInstance(java.lang.String clientId)get IMClient instance by clientId.static LCIMClientLCIMClient. getInstance(java.lang.String clientId, java.lang.String tag)get IMClient instance by clientId and tag.static LCIMClientLCIMClient. peekInstance(java.lang.String clientId)peek IMClient instance by clientId.参数类型为LCIMClient的cn.leancloud.im.v2中的方法 修饰符和类型 方法 说明 voidLCIMConversationEventHandler. onBlocked(LCIMClient client, LCIMConversation conversation, java.lang.String operator)当前用户被加入黑名单通知处理函数abstract voidLCIMClientEventHandler. onClientOffline(LCIMClient client, int code)实现本方法以处理当前登录被踢下线的情况abstract voidLCIMClientEventHandler. onConnectionPaused(LCIMClient client)实现本方法以处理网络断开事件abstract voidLCIMClientEventHandler. onConnectionResume(LCIMClient client)实现本方法以处理网络恢复事件voidLCIMConversationEventHandler. onInfoChanged(LCIMClient client, LCIMConversation conversation, JSONObject attr, java.lang.String operator)对话自身属性变更通知abstract voidLCIMConversationEventHandler. onInvited(LCIMClient client, LCIMConversation conversation, java.lang.String operator)实现本方法来处理当前用户被邀请到某个聊天对话事件abstract voidLCIMConversationEventHandler. onKicked(LCIMClient client, LCIMConversation conversation, java.lang.String kickedBy)实现本方法来处理当前用户被踢出某个聊天对话事件voidLCIMConversationEventHandler. onLastDeliveredAtUpdated(LCIMClient client, LCIMConversation conversation)实现本地方法来处理对方已经接收消息的通知voidLCIMConversationEventHandler. onLastReadAtUpdated(LCIMClient client, LCIMConversation conversation)实现本地方法来处理对方已经阅读消息的通知voidLCIMConversationEventHandler. onMemberBlocked(LCIMClient client, LCIMConversation conversation, java.util.List<java.lang.String> members, java.lang.String operator)聊天室成员被加入黑名单通知处理函数voidLCIMConversationEventHandler. onMemberInfoUpdated(LCIMClient client, LCIMConversation conversation, LCIMConversationMemberInfo memberInfo, java.util.List<java.lang.String> updatedProperties, java.lang.String operator)对话成员信息变更通知。abstract voidLCIMConversationEventHandler. onMemberJoined(LCIMClient client, LCIMConversation conversation, java.util.List<java.lang.String> members, java.lang.String invitedBy)实现本方法以处理聊天对话中的参与者加入事件abstract voidLCIMConversationEventHandler. onMemberLeft(LCIMClient client, LCIMConversation conversation, java.util.List<java.lang.String> members, java.lang.String kickedBy)实现本方法以处理聊天对话中的参与者离开事件voidLCIMConversationEventHandler. onMemberMuted(LCIMClient client, LCIMConversation conversation, java.util.List<java.lang.String> members, java.lang.String operator)聊天室成员被禁言通知处理函数voidLCIMConversationEventHandler. onMemberUnblocked(LCIMClient client, LCIMConversation conversation, java.util.List<java.lang.String> members, java.lang.String operator)聊天室成员被移出黑名单通知处理函数voidLCIMConversationEventHandler. onMemberUnmuted(LCIMClient client, LCIMConversation conversation, java.util.List<java.lang.String> members, java.lang.String operator)聊天室成员被解除禁言通知处理函数voidLCIMMessageHandler. onMessage(LCIMMessage message, LCIMConversation conversation, LCIMClient client)重载此方法来处理接收消息voidLCIMTypedMessageHandler. onMessage(T message, LCIMConversation conversation, LCIMClient client)重载此方法来处理接收消息abstract voidMessageHandler. onMessage(T message, LCIMConversation conversation, LCIMClient client)voidLCIMConversationEventHandler. onMessageRecalled(LCIMClient client, LCIMConversation conversation, LCIMMessage message)实现本地方法来处理消息的撤回事件voidLCIMMessageHandler. onMessageReceipt(LCIMMessage message, LCIMConversation conversation, LCIMClient client)重载此方法来处理消息回执voidLCIMTypedMessageHandler. onMessageReceipt(T message, LCIMConversation conversation, LCIMClient client)重载此方法来处理消息回执abstract voidMessageHandler. onMessageReceipt(T message, LCIMConversation conversation, LCIMClient client)voidLCIMMessageHandler. onMessageReceiptEx(LCIMMessage message, java.lang.String operator, LCIMConversation conversation, LCIMClient client)重载此方法来处理消息回执voidLCIMTypedMessageHandler. onMessageReceiptEx(T message, java.lang.String operator, LCIMConversation conversation, LCIMClient client)abstract voidMessageHandler. onMessageReceiptEx(T message, java.lang.String operator, LCIMConversation conversation, LCIMClient client)voidLCIMConversationEventHandler. onMessageUpdated(LCIMClient client, LCIMConversation conversation, LCIMMessage message)实现本地方法来处理消息的更新事件voidLCIMConversationEventHandler. onMuted(LCIMClient client, LCIMConversation conversation, java.lang.String operator)当前用户被禁言通知处理函数voidLCIMConversationEventHandler. onUnblocked(LCIMClient client, LCIMConversation conversation, java.lang.String operator)当前用户被移出黑名单通知处理函数voidLCIMConversationEventHandler. onUnmuted(LCIMClient client, LCIMConversation conversation, java.lang.String operator)当前用户被解除禁言通知处理函数voidLCIMConversationEventHandler. onUnreadMessagesCountUpdated(LCIMClient client, LCIMConversation conversation)实现本地方法来处理未读消息数量的通知static LCIMConversationLCIMConversation. parseFromJson(LCIMClient client, java.util.Map<java.lang.String,java.lang.Object> jsonObj)parse LCIMConversation from jsonObjectprotected static voidLCIMMessageManager. processMessage(LCIMMessage message, int convType, LCIMClient client, boolean hasMore, boolean isTransient)static voidLCIMMessageManagerHelper. processMessage(LCIMMessage message, int convType, LCIMClient client, boolean hasMore, boolean isTransient)protected static voidLCIMMessageManager. processMessageReceipt(LCIMMessage message, LCIMClient client, java.lang.String from)static voidLCIMMessageManagerHelper. processMessageReceipt(LCIMMessage message, LCIMClient client, java.lang.String from)参数类型为LCIMClient的cn.leancloud.im.v2中的构造器 构造器 说明 LCIMChatRoom(LCIMClient client, java.lang.String conversationId)LCIMConversation(LCIMClient client, java.lang.String conversationId)LCIMConversation(LCIMClient client, java.util.List<java.lang.String> members, java.util.Map<java.lang.String,java.lang.Object> attributes, boolean isTransient)LCIMConversationsQuery(LCIMClient client)LCIMServiceConversation(LCIMClient client, java.lang.String conversationId)LCIMTemporaryConversation(LCIMClient client, java.lang.String conversationId) -
cn.leancloud.im.v2.callback中LCIMClient的使用
参数类型为LCIMClient的cn.leancloud.im.v2.callback中的方法 修饰符和类型 方法 说明 abstract voidLCIMClientCallback. done(LCIMClient client, LCIMException e)protected voidLCIMClientCallback. internalDone0(LCIMClient client, LCException LCException)
-