removeMessageExpansionForKey static method

Future removeMessageExpansionForKey(
  1. List keyArray,
  2. String messageUId,
  3. dynamic finished(
    1. int? code
    )?
)

删除消息扩展信息中特定的键值对

keyArray 消息扩展信息中待删除的 key 的列表

messageUId 消息 messageUId

finished 回调结果,code 为 0 代表操作成功,其他值代表失败

扩展信息只支持单聊和群组,其它会话类型不能设置扩展信息

Implementation

static Future removeMessageExpansionForKey(List keyArray, String messageUId, Function(int? code)? finished) async {
  Map map = {"keyArray": keyArray, "messageUId": messageUId};
  int? resultMap = await _channel.invokeMethod(RCMethodKey.RemoveMessageExpansionForKey, map);
  if (finished != null) {
    finished(resultMap);
  }
}