From 6c083de3930e4e3358925d980257363882b79090 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 12 七月 2023 22:56:31 +0800 Subject: [PATCH] 状态刷新优化,后台回到前台重新读取数据 --- HDL-ON_iOS/AppDelegate.cs | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs index e2c07be..701edba 100644 --- a/HDL-ON_iOS/AppDelegate.cs +++ b/HDL-ON_iOS/AppDelegate.cs @@ -186,12 +186,12 @@ public override void OnResignActivation(UIApplication application) { //璁剧疆鍏ㄨ閫氱姸鎬� - string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; - string errorVersion = "16.2.0"; - if (systemVersion.CompareTo(errorVersion) < 0)///鍏ㄨ閫氫笉鍏煎ios16浠ヤ笂鐨勭郴缁燂紝涓嶈鍔犺浇杩欎釜鍏� - { - Shared.IOS.HDLFVSDK.Video.FVapplicationWillResignActive(application); - } + //string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; + //string errorVersion = "16.2.0"; + //if (systemVersion.CompareTo(errorVersion) < 0)///鍏ㄨ閫氫笉鍏煎ios16浠ヤ笂鐨勭郴缁燂紝涓嶈鍔犺浇杩欎釜鍏� + //{ + // Shared.IOS.HDLFVSDK.Video.FVapplicationWillResignActive(application); + //} Console.WriteLine("OnResignActivation"); UserInfo.Current.unlockTime = DateTime.Now; } @@ -484,7 +484,8 @@ //杩涘叆鍚庡彴mqtt姝e湪杩炴帴閲嶇疆鐘舵�� HDL_ON.DAL.Mqtt.MqttClient.RemoteMqttIsConnecting = false; HDL_ON.DriverLayer.UdpSocket._BusSocket.Stop(); - + HDL_ON.DriverLayer.Control.Ins.GatewayOnline_Cloud = HDL_ON.DriverLayer.Control.Ins.GatewayOnline_Local = false; + } -- Gitblit v1.8.0