OnRecvMessageRevokedCallback
Introduction
The callback of a message been recalled event.
You have better to update the UI for the recalled message, and do not shows the original data of it any more with changing it to a status of been recalled.
Returned template
OnRecvMessageRevokedCallback = void Function(
String messageid
)
Return value details
name | type | description |
---|---|---|
messageid | String | The ID of the recalled message. |
Code example
V2TimAdvancedMsgListener listener = V2TimAdvancedMsgListener(
onRecvMessageRevoked: (String messageid) {
},
);
TencentImSDKPlugin.v2TIMManager
.getMessageManager()
.addAdvancedMsgListener(listener: listener);