onRecvC2CReadReceipt
Description
info
After a sent C2C message is marked as read by the recipient, the message sender receives this callback.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(List<ReadReceiptInfo> list)? onRecvC2CMessageReadReceipt;
Return Results
| Name | Type | Description |
|---|---|---|
| list | List<ReadReceiptInfo> | Read receipt list |
Return Prototype
- (void)onRecvC2CReadReceipt:(NSArray<OIMReceiptInfo *> *)receiptList;
Return Results
| Name | Type | Description |
|---|---|---|
| receiptList | NSArray< OIMReceiptInfo * > | Read receipt list |
void onRecvC2CMessageReadReceipt(List<ReadReceiptInfo> list)
Return Results
| Name | Type | Description |
|---|---|---|
| list | List<ReadReceiptInfo> | Receipt list |
Return Prototype
onRecvC2CReadReceipt(data: WSEvent<ReceiptInfo[]>): void;
Return Results
| Name | Type | Description |
|---|---|---|
| data | WSEvent<ReceiptInfo[]> | Read receipt list |
Call Example
import { getSDK } from '@openim/wasm-client-sdk';
const IMSDK = getSDK();
// use in electron with ffi
// import { getWithRenderProcess } from '@openim/electron-client-sdk/lib/render';
// const { instance: IMSDK } = getWithRenderProcess();
// use in mini program
// import { getSDK } from '@openim/client-sdk';
// const IMSDK = getSDK();
IMSDK.on(CbEvents.OnRecvC2CReadReceipt, ({ data }) => {
// data: read receipt list
});
Return Prototype
onRecvC2CReadReceipt(data: WSEvent<ReceiptInfo[]>): void;
Return Results
| Name | Type | Description |
|---|---|---|
| data | WSEvent<ReceiptInfo[]> | Read receipt list |
Call Example
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnRecvC2CReadReceipt, ({ data }) => {
// data: read receipt list
});
Return Prototype
void OnRecvC2CReadReceipt(List<MessageReceipt> list);
Return Results
| Name | Type | Description |
|---|---|---|
| list | List<MessageReceipt> | Read receipt list |