getNotificationQuietHours static method
查询已设置的全局时间段消息提醒屏蔽
finished
回调结果,code 为 0 代表操作成功,其他值代表失败;startTime 代表已设置的屏蔽开始时间,spansMin 代表已设置的屏蔽时间分钟数,0 < spansMin < 1440
Implementation
static Future<void> getNotificationQuietHours(Function(int? code, String? startTime, int? spansMin)? finished) async {
Map result = await _channel.invokeMethod(RCMethodKey.GetNotificationQuietHours);
int? code = result["code"];
String? startTime = result["startTime"];
int? spansMin = result["spansMin"];
if (finished != null) {
finished(code, startTime, spansMin);
}
}