| | |
| | | using HDL_ON; |
| | | using Shared; |
| | | using UIKit; |
| | | using UserNotifications; |
| | | using HDL_ON.UI; |
| | | using HDL_ON.DAL.Server; |
| | | using Intents; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace SharedMethod |
| | | { |
| | |
| | | |
| | | public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) |
| | | { |
| | | #region 异常捕获 2023-07-27 17:37:04 |
| | | AppDomain.CurrentDomain.UnhandledException += (sender, e) => { |
| | | if(e.ExceptionObject is Exception exception) |
| | | { |
| | | Console.WriteLine("未处理的异常:" + exception.Message); |
| | | } |
| | | }; |
| | | |
| | | TaskScheduler.UnobservedTaskException += (sender, e) => { |
| | | if (e.Exception is Exception exception) |
| | | { |
| | | Console.WriteLine("未处理的异常:" + exception.Message); |
| | | } |
| | | }; |
| | | #endregion |
| | | |
| | | |
| | | //设置全视通状态 |
| | | //string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; |