deleteMessages static method
Future<void>
deleteMessages(
- int conversationType,
- String targetId,
- dynamic finished(
- int? code
)?
)
删除特定会话的消息
conversationType
会话类型,参见枚举 RCConversationType
targetId
会话 id
Implementation
static Future<void> deleteMessages(int conversationType, String targetId, Function(int? code)? finished) async {
Map map = {"conversationType": conversationType, "targetId": targetId};
int? code = await _channel.invokeMethod(RCMethodKey.DeleteMessages, map);
if (finished != null) {
finished(code);
}
}