# Interface MessageReadReceiptListener

消息已读 V1 监听，支持单群聊

#### Version

1.3.0

interface MessageReadReceiptListener {
onMessageReadReceiptReceived(message: Message): any;
onMessageReceiptRequest(
conId: ConversationIdentifier,
messageUid: string,
): any;
onMessageReceiptResponse(
conId: ConversationIdentifier,
messageUid: string,
respondUserIdList: Map<string, number>,
): any;
}

- Defined in message/listener/MessageReadReceiptListener.ts:8

##### Index

### Methods

onMessageReadReceiptReceived
onMessageReceiptRequest
onMessageReceiptResponse

## Methods

### onMessageReadReceiptReceived

- onMessageReadReceiptReceived(message: Message): any

  单聊中收到消息回执的回调。

  #### Parameters

  - message: Message

    消息体

  #### Returns any

  #### Discussion

  对方调用 sendReadReceiptMessage() 时触发该方法。触发该方法时本地数据的对应消息已变为已读，需要上层把聊天页面对应消息变为已读

  - Defined in message/listener/MessageReadReceiptListener.ts:14

### onMessageReceiptRequest

- onMessageReceiptRequest(conId: ConversationIdentifier, messageUid: string): any

  群聊中某人发起了回执请求，会话中其余人会收到该请求，并回调此方法。

      对方调用 sendReadReceiptRequest() 时触发该方法
      触发该方法后，当前用户在合适的时机调用 sendReadReceiptResponse() 响应

  #### Parameters

  - conId: ConversationIdentifier

    会话标识

  - messageUid: string

    请求已读回执的消息 UId

  #### Returns any

  - Defined in message/listener/MessageReadReceiptListener.ts:25

### onMessageReceiptResponse

- onMessageReceiptResponse(
  conId: ConversationIdentifier,
  messageUid: string,
  respondUserIdList: Map<string, number>,
  ): any

  群组中收到了其他人发送的响应

  #### Parameters

  - conId: ConversationIdentifier

    会话标识

  - messageUid: string

    请求已读响应的消息 UId

  - respondUserIdList: Map<string, number>

    响应了此消息的用户列表，key 用户 Id， value 响应时间（毫秒时间戳）

  #### Returns any

  - Defined in message/listener/MessageReadReceiptListener.ts:33