revokeMessage method

Future<NIMResult<void>> revokeMessage(
  1. {required NIMMessage message,
  2. String? customApnsText,
  3. Map<String, Object>? pushPayload,
  4. bool? shouldNotifyBeCount,
  5. String? postscript,
  6. String? attach}
)

撤回消息 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);
}