| | |
| | | public override void DidEnterBackground(UIApplication application) |
| | | { |
| | | //设置全视通状态 |
| | | string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | string errorVersion = "16.2.0"; |
| | | if (systemVersion.CompareTo(errorVersion) < 0)///全视通不兼容ios16以上的系统,不要加载这个先 |
| | | { |
| | | Shared.IOS.HDLFVSDK.Video.FVapplicationDidEnterBackground(application); |
| | | } |
| | | //string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | //string errorVersion = "16.2.0"; |
| | | //if (systemVersion.CompareTo(errorVersion) < 0)///全视通不兼容ios16以上的系统,不要加载这个先 |
| | | //{ |
| | | // Shared.IOS.HDLFVSDK.Video.FVapplicationDidEnterBackground(application); |
| | | //} |
| | | //SharedMethod.SharedMethod.IsBackground = true; |
| | | //MainPage.IsEnterBackground = true; |
| | | ////进入后台mqtt正在连接重置状态 |
| | |
| | | public override void OnActivated(UIApplication application) |
| | | { |
| | | //设置全视通状态 |
| | | string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | string errorVersion = "16.2.0"; |
| | | if (systemVersion.CompareTo(errorVersion) < 0)///全视通不兼容ios16以上的系统,不要加载这个先 |
| | | { |
| | | Shared.IOS.HDLFVSDK.Video.FVapplicationDidBecomeActive(application); |
| | | } |
| | | //string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | //string errorVersion = "16.2.0"; |
| | | //if (systemVersion.CompareTo(errorVersion) < 0)///全视通不兼容ios16以上的系统,不要加载这个先 |
| | | //{ |
| | | // Shared.IOS.HDLFVSDK.Video.FVapplicationDidBecomeActive(application); |
| | | //} |
| | | Console.WriteLine("OnActivated"); |
| | | base.OnActivated(application); |
| | | //HDL_ON.DriverLayer.Control.Ins.SearchLoaclGateway(); |
| | |
| | | { |
| | | |
| | | //设置全视通状态 |
| | | string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | string errorVersion = "16.2.0"; |
| | | if (systemVersion.CompareTo(errorVersion) < 0)///全视通不兼容ios16以上的系统,不要加载这个先 |
| | | { |
| | | Shared.IOS.HDLFVSDK.Video.FVapplication(application, new NSDictionary()); |
| | | } |
| | | //string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |
| | | //string errorVersion = "16.2.0"; |
| | | //if (systemVersion.CompareTo(errorVersion) < 0)///全视通不兼容ios16以上的系统,不要加载这个先 |
| | | //{ |
| | | // Shared.IOS.HDLFVSDK.Video.FVapplication(application, new NSDictionary()); |
| | | //} |
| | | Console.WriteLine("111111111111"); |
| | | SetCurrentLanguage(); |
| | | //Shared.Application.FontSize = 12; |