onRecvGroupReadReceipt
Feature Introduction
info
After the group chat messages sent by oneself are marked as read by group members, both the sender and the marker will receive this callback.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(List<ReadReceiptInfo> list)? onRecvGroupMessageReadReceipt;
Return Result
Name | Type | Description |
---|---|---|
list | List<ReadReceiptInfo> | Read Receipt List |
Return Prototype
- (void)onRecvGroupReadReceipt:(NSArray<OIMReceiptInfo *> *)receiptList;
Return Result
Name | Type | Description |
---|---|---|
receiptList | NSArray< OIMReceiptInfo * > | Read Receipt List |
Return Prototype
void onRecvGroupMessageReadReceipt(List<ReadReceiptInfo> list)
Return Result
Name | Type | Description |
---|---|---|
list | List<ReadReceiptInfo> | Receipt List |
Return Prototype
onRecvGroupReadReceipt(data: WSEvent<ReceiptInfo[]>): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent<ReceiptInfo[]> | Read Receipt List |
Example Call
import { getSDK, CbEvents } from '@openim/wasm-client-sdk';
// or
// import { OpenIMSDK, CbEvents } from 'open-im-sdk';
// const IMSDK = new OpenIMSDK();
const IMSDK = getSDK();
IMSDK.on(CbEvents.OnRecvGroupReadReceipt, ({ data }) => {
// data is the read receipt list
});
Return Prototype
onRecvGroupReadReceipt(data: WSEvent<ReceiptInfo[]>): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent<ReceiptInfo[]> | Read Receipt List |
Example Call
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnRecvGroupReadReceipt, ({ data }) => {
// data is the read receipt list
});
Prototype
void OnRecvGroupReadReceipt(List<MessageReceipt> list);
Parameter
Parameter Name | Type | Description |
---|---|---|
list | List<MessageReceipt> | Read Receipt List |