| | |
| | | SPK.AirSwitch, |
| | | SPK.PanelSocket,SPK.ElectricSocket, |
| | | SPK.MechanicalArm,SPK.IpCam_Imou, |
| | | SPK.GroupControl |
| | | }; |
| | | |
| | | |
| | |
| | | public static int LoadEvent_BackAction() |
| | | { |
| | | int result = 0; |
| | | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | try |
| | | { |
| | | if (Inverter.Ins.H5Page.Parent != null) |
| | | { |
| | |
| | | { |
| | | result = 2;//无法再后退,可以执行退到桌面 |
| | | } |
| | | else |
| | | { |
| | | if (BasePageView.ChildrenCount > 1) |
| | | { |
| | | int index = BasePageView.ChildrenCount - 1; |
| | |
| | | { |
| | | result = 2;//无法再后退,可以执行退到桌面 |
| | | } |
| | | } |
| | | }catch(Exception ex) |
| | | { |
| | | MainPage.Log($"加载安卓后退异常:{ex.Message}"); |
| | | } |
| | | }); |
| | | return result; |
| | | } |
| | |
| | | public static void Log(string msg) |
| | | { |
| | | #if DEBUG |
| | | if (msg.Contains("收到数据")) |
| | | if (msg.Contains("收到数据") |
| | | || msg.Contains("发送") |
| | | |
| | | ) |
| | | Console.WriteLine(msg); |
| | | #endif |
| | | } |