clearConversations static method

Future<void> clearConversations(
  1. List<int> conversationTypes,
  2. dynamic finished(
    1. int? code
    )?
)

清空会话类型列表中的所有会话及会话信息

Implementation

static Future<void> clearConversations(List<int> conversationTypes, Function(int? code)? finished) async {
  Map paramMap = {"conversationTypes": conversationTypes};
  int? result = await _channel.invokeMethod(RCMethodKey.ClearConversations, paramMap);
  if (finished != null) {
    finished(result);
  }
}