类 LCIMConversationEventHandler

    • 字段详细资料

      • LOGGER

        protected static final LCLogger LOGGER
    • 构造器详细资料

      • LCIMConversationEventHandler

        public LCIMConversationEventHandler()
    • 方法详细资料

      • onMemberLeft

        public abstract void onMemberLeft​(LCIMClient client,
                                          LCIMConversation conversation,
                                          java.util.List<java.lang.String> members,
                                          java.lang.String kickedBy)
        实现本方法以处理聊天对话中的参与者离开事件
        参数:
        client - client instance
        conversation - conversation instance.
        members - 离开的参与者
        kickedBy - 离开事件的发动者,有可能是离开的参与者本身
        从以下版本开始:
        3.0
      • onMemberJoined

        public abstract void onMemberJoined​(LCIMClient client,
                                            LCIMConversation conversation,
                                            java.util.List<java.lang.String> members,
                                            java.lang.String invitedBy)
        实现本方法以处理聊天对话中的参与者加入事件
        参数:
        client - client instance
        conversation - conversation instance.
        members - 加入的参与者
        invitedBy - 加入事件的邀请人,有可能是加入的参与者本身
        从以下版本开始:
        3.0
      • onKicked

        public abstract void onKicked​(LCIMClient client,
                                      LCIMConversation conversation,
                                      java.lang.String kickedBy)
        实现本方法来处理当前用户被踢出某个聊天对话事件
        参数:
        client - client instance
        conversation - conversation instance.
        kickedBy - 踢出你的人
        从以下版本开始:
        3.0
      • onInvited

        public abstract void onInvited​(LCIMClient client,
                                       LCIMConversation conversation,
                                       java.lang.String operator)
        实现本方法来处理当前用户被邀请到某个聊天对话事件
        参数:
        client - client instance
        conversation - 被邀请的聊天对话
        operator - 邀请你的人
        从以下版本开始:
        3.0
      • onMuted

        public void onMuted​(LCIMClient client,
                            LCIMConversation conversation,
                            java.lang.String operator)
        当前用户被禁言通知处理函数
        参数:
        client - 聊天客户端
        conversation - 对话
        operator - 操作者 id
      • onUnmuted

        public void onUnmuted​(LCIMClient client,
                              LCIMConversation conversation,
                              java.lang.String operator)
        当前用户被解除禁言通知处理函数
        参数:
        client - 聊天客户端
        conversation - 对话
        operator - 操作者 id
      • onMemberMuted

        public void onMemberMuted​(LCIMClient client,
                                  LCIMConversation conversation,
                                  java.util.List<java.lang.String> members,
                                  java.lang.String operator)
        聊天室成员被禁言通知处理函数
        参数:
        client - 聊天客户端
        conversation - 对话
        members - 成员列表
        operator - 操作者 id
      • onMemberUnmuted

        public void onMemberUnmuted​(LCIMClient client,
                                    LCIMConversation conversation,
                                    java.util.List<java.lang.String> members,
                                    java.lang.String operator)
        聊天室成员被解除禁言通知处理函数
        参数:
        client - 聊天客户端
        conversation - 对话
        members - 成员列表
        operator - 操作者 id
      • onBlocked

        public void onBlocked​(LCIMClient client,
                              LCIMConversation conversation,
                              java.lang.String operator)
        当前用户被加入黑名单通知处理函数
        参数:
        client - 聊天客户端
        conversation - 对话
        operator - 操作者 id
      • onUnblocked

        public void onUnblocked​(LCIMClient client,
                                LCIMConversation conversation,
                                java.lang.String operator)
        当前用户被移出黑名单通知处理函数
        参数:
        client - 聊天客户端
        conversation - 对话
        operator - 操作者 id
      • onMemberBlocked

        public void onMemberBlocked​(LCIMClient client,
                                    LCIMConversation conversation,
                                    java.util.List<java.lang.String> members,
                                    java.lang.String operator)
        聊天室成员被加入黑名单通知处理函数
        参数:
        client - 聊天客户端
        conversation - 对话
        members - 成员列表
        operator - 操作者 id
      • onMemberUnblocked

        public void onMemberUnblocked​(LCIMClient client,
                                      LCIMConversation conversation,
                                      java.util.List<java.lang.String> members,
                                      java.lang.String operator)
        聊天室成员被移出黑名单通知处理函数
        参数:
        client - 聊天客户端
        conversation - 对话
        members - 成员列表
        operator - 操作者 id
      • onUnreadMessagesCountUpdated

        public void onUnreadMessagesCountUpdated​(LCIMClient client,
                                                 LCIMConversation conversation)
        实现本地方法来处理未读消息数量的通知
        参数:
        client - client instance
        conversation - current conversation.
      • onLastDeliveredAtUpdated

        public void onLastDeliveredAtUpdated​(LCIMClient client,
                                             LCIMConversation conversation)
        实现本地方法来处理对方已经接收消息的通知
        参数:
        client - client instance
        conversation - current conversation.
      • onLastReadAtUpdated

        public void onLastReadAtUpdated​(LCIMClient client,
                                        LCIMConversation conversation)
        实现本地方法来处理对方已经阅读消息的通知
        参数:
        client - client instance
        conversation - current conversation.
      • onMessageUpdated

        public void onMessageUpdated​(LCIMClient client,
                                     LCIMConversation conversation,
                                     LCIMMessage message)
        实现本地方法来处理消息的更新事件
        参数:
        client - client instance
        conversation - current conversation.
        message - messgae instance.
      • onMessageRecalled

        public void onMessageRecalled​(LCIMClient client,
                                      LCIMConversation conversation,
                                      LCIMMessage message)
        实现本地方法来处理消息的撤回事件
        参数:
        client - client instance
        conversation - current conversation.
        message - message instance.
      • onMemberInfoUpdated

        public void onMemberInfoUpdated​(LCIMClient client,
                                        LCIMConversation conversation,
                                        LCIMConversationMemberInfo memberInfo,
                                        java.util.List<java.lang.String> updatedProperties,
                                        java.lang.String operator)
        对话成员信息变更通知。 常见的有:某成员权限发生变化(如,被设为管理员等)。
        参数:
        client - 通知关联的 IMClient
        conversation - 通知关联的对话
        memberInfo - 变更后的成员信息
        updatedProperties - 发生变更的属性列表(当前固定为 "role")
        operator - 操作者 id
      • onInfoChanged

        public void onInfoChanged​(LCIMClient client,
                                  LCIMConversation conversation,
                                  JSONObject attr,
                                  java.lang.String operator)
        对话自身属性变更通知
        参数:
        client - client instance
        conversation - current conversation.
        attr - optional attributes.
        operator - operator client id.
      • processEvent0

        protected final void processEvent0​(int operation,
                                           java.lang.Object operator,
                                           java.lang.Object operand,
                                           java.lang.Object eventScene)
        指定者:
        processEvent0 在类中 LCIMEventHandler