onNewRecvMessageRevoked
Feature Introduction
info
When a received message is revoked or a message you sent is revoked, this callback is received.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(RevokedInfo info)? onRecvMessageRevokedV2;
Return Result
Name | Type | Description |
---|---|---|
info | RevokedInfo | Details of the revocation |
Return Prototype
- (void)onNewRecvMessageRevoked:(OIMMessageRevokedInfo *)messageRevoked;
Return Result
Name | Type | Description |
---|---|---|
messageRevoked | OIMMessageRevokedInfo | Details of the revocation |
Return Prototype
void onRecvMessageRevokedV2(RevokedInfo info);
Return Result
Name | Type | Description |
---|---|---|
info | RevokedInfo | Revocation details |
Return Prototype
onNewRecvMessageRevoked(data: WSEvent<RevokedInfo>): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent<RevokedInfo> | Details of the revocation |
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.OnNewRecvMessageRevoked, ({ data }) => {
// data Details of the revocation
});
Return Prototype
onNewRecvMessageRevoked(data: WSEvent<RevokedInfo>): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent<RevokedInfo> | Details of the revocation |
Example Call
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnNewRecvMessageRevoked, ({ data }) => {
// data Details of the revocation
});
Prototype
void OnNewRecvMessageRevoked(MessageRevoked info);
Parameter
Parameter Name | Type | Description |
---|---|---|
info | MessageRevoked | Details of the revocation |