Package io.rong.imlib

## Class ReadReceiptV2Manager

- All Implemented Interfaces:

      public class ReadReceiptV2Manager

  群已读回执V2 Manager. Created by yanke on 2021/3/9

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public abstract class` | `ReadReceiptV2Manager.GroupReadReceiptV2Listener` | 消息回执监听. 收到消息回执时会回调.
    `public interface` | `ReadReceiptV2Manager.IGetMessageReadUserListCallback` | 获取消息已读用户列表回调
    `public enum` | `ReadReceiptV2Manager.GroupReadReceiptVersion` | 群已读回执版本枚举声明. 0,标识旧版本方案; 1,标识V2版本方案.

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public static ReadReceiptV2Manager.GroupReadReceiptV2Listener` | `groupReadReceiptV2Listener` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static ReadReceiptV2Manager.GroupReadReceiptV2Listener` | `getGroupReadReceiptV2Listener()` |
    `static void` | `setGroupReadReceiptV2Listener(ReadReceiptV2Manager.GroupReadReceiptV2Listener listener)` |
    `void` | `init(Context context, IRongCoreListener.OnReceiveMessageListener listener, IHandler stub)` |
    `static ReadReceiptV2Manager` | `getInstance()` |
    `void` | `sendReadReceiptResponse(ConversationType type, String targetId, String channelId, List<Message> messageList, IRongCoreCallback.OperationCallback callback)` | 发送已读回执(新方案)（只支持群组）
    `void` | `getGroupMessageReaderList(Message message, ReadReceiptV2Manager.IGetMessageReadUserListCallback callback)` | 获取消息已读用户列表（只支持群组）

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### getGroupReadReceiptV2Listener

           static ReadReceiptV2Manager.GroupReadReceiptV2Listener getGroupReadReceiptV2Listener()

    - #### setGroupReadReceiptV2Listener

           static void setGroupReadReceiptV2Listener(ReadReceiptV2Manager.GroupReadReceiptV2Listener listener)

    - #### init

           void init(Context context, IRongCoreListener.OnReceiveMessageListener listener, IHandler stub)

    - #### getInstance

           static ReadReceiptV2Manager getInstance()

    - #### sendReadReceiptResponse

           void sendReadReceiptResponse(ConversationType type, String targetId, String channelId, List<Message> messageList, IRongCoreCallback.OperationCallback callback)

      发送已读回执(新方案)（只支持群组）

      Parameters:
        `type` - 会话类型
        `targetId` - 会话 id
        `channelId` - 消息所属会话的业务标识。
        `messageList` - 会话中需要发送已读回执的消息列表
        `callback` - 回调函数

    - #### getGroupMessageReaderList

           void getGroupMessageReaderList(Message message, ReadReceiptV2Manager.IGetMessageReadUserListCallback callback)

      获取消息已读用户列表（只支持群组）

      Parameters:
        `message` - 会话中需要发送已读回执的消息
        `callback` - 回调函数