setConversationNotificationStatus static method
设置会话的提醒状态
conversationType
会话类型,参见枚举 RCConversationType
targetId
会话 id
finished
回调结果,status 参见 RCConversationNotificationStatus,code 为 0 代表正常
Implementation
static Future<void> setConversationNotificationStatus(int conversationType, String targetId, bool isBlocked, Function(int? status, int? code)? finished) async {
Map map = {"conversationType": conversationType, "targetId": targetId, "isBlocked": isBlocked};
Map? statusMap = await _channel.invokeMethod(RCMethodKey.SetConversationNotificationStatus, map);
if (finished != null) {
finished(statusMap!["status"], statusMap["code"]);
}
}