revokeMessage method
撤回消息
message
- 要撤回的消息
customApnsText
– 第三方透传消息推送文本,不填则不推送
pushPayload
– 第三方自定义的推送属性,限制json类型,长度2048
shouldNotifyBeCount
– 撤回通知是否更新未读数
postscript
– 附言
attach
– 扩展字段
Implementation
Future<NIMResult<void>> revokeMessage(
{required NIMMessage message,
String? customApnsText,
Map<String, Object>? pushPayload,
bool? shouldNotifyBeCount,
String? postscript,
String? attach}) async {
return _platform.revokeMessage(
message: message,
customApnsText: customApnsText,
pushPayload: pushPayload,
shouldNotifyBeCount: shouldNotifyBeCount,
postscript: postscript,
attach: attach);
}