onRecvC2CReadReceipt
Feature Introduction
info
After the one-on-one message sent by oneself is marked as read by the other party, the sender will receive this callback.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(List<ReadReceiptInfo> list)? onRecvC2CMessageReadReceipt;
Return Result
Name | Type | Description |
---|---|---|
list | List<ReadReceiptInfo> | Read receipt list |
Return Prototype
- (void)onRecvC2CReadReceipt:(NSArray<OIMReceiptInfo *> *)receiptList;
Return Result
Name | Type | Description |
---|---|---|
receiptList | NSArray< OIMReceiptInfo * > | Read receipt list |
Return Prototype
void onRecvC2CMessageReadReceipt(List<ReadReceiptInfo> list)
Return Result
Name | Type | Description |
---|---|---|
list | List<ReadReceiptInfo> | Receipt list |
Return Prototype
onRecvC2CReadReceipt(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 { getSDK, CbEvents } from '@openim/client-sdk';
// const IMSDK = getSDK();
const IMSDK = getSDK();
IMSDK.on(CbEvents.OnRecvC2CReadReceipt, ({ data }) => {
// data Read receipt list
});
Return Prototype
onRecvC2CReadReceipt(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.OnRecvC2CReadReceipt, ({ data }) => {
// data Read receipt list
});
Prototype
void OnRecvC2CReadReceipt(List<MessageReceipt> list);
Parameter
Parameter Name | Type | Description |
---|---|---|
list | List<MessageReceipt> | Read receipt list |