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