From e1a8f2f7e4d850beedeb1469610b878c1427e976 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 15 十二月 2021 09:01:53 +0800
Subject: [PATCH] 更新

---
 HDL-ON_iOS/AppDelegate.cs |   78 ++------------------------------------
 1 files changed, 5 insertions(+), 73 deletions(-)

diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs
index 81d1d57..4dba627 100644
--- a/HDL-ON_iOS/AppDelegate.cs
+++ b/HDL-ON_iOS/AppDelegate.cs
@@ -1,4 +1,4 @@
-锘縰sing System;
+锘縰sing System;
 using Foundation;
 using HDL_ON;
 using Shared;
@@ -10,8 +10,6 @@
 using HDL_ON.UI;
 using HDL_ON.DAL.Server;
 using Intents;
-using Other.Siri;
-using HDLSceneSiri;
 
 namespace SharedMethod
 {
@@ -279,33 +277,11 @@
             //    //RemoteInfo.Current.ReadMsgList(true);
             //}
 
-            #region Siri
-            // Request access to Siri
-            INPreferences.RequestSiriAuthorization((INSiriAuthorizationStatus status) => {
-                // Respond to returned status
-                switch (status)
-                {
-                    case INSiriAuthorizationStatus.Authorized:
-                        break;
-                    case INSiriAuthorizationStatus.Denied:
-                        break;
-                    case INSiriAuthorizationStatus.NotDetermined:
-                        break;
-                    case INSiriAuthorizationStatus.Restricted:
-                        break;
-                }
-            });
+            //楂樺痉key
+            GDMapKit.setGDApiKey("f0635ea15c5d579c6e93d9f07a06da69");
 
-            var language = INPreferences.SiriLanguageCode;
-
-            // Take action based on language
-            if (language == "en-US")
-            {
-                // Do something...
-            }
-
-            #endregion
-
+            //楂樺痉key
+            GDMapKit.setGDApiKey("f0635ea15c5d579c6e93d9f07a06da69");
             Console.WriteLine("FinishedLaunching");
             return true;
         }
@@ -474,50 +450,6 @@
             UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
             HDL_ON.DriverLayer.Control.Ins.SearchLoaclGateway();
         }
-
-
-
-        #region Siri
-        public override bool ContinueUserActivity(UIApplication application, NSUserActivity userActivity, UIApplicationRestorationHandler completionHandler)
-        {
-            var intent = userActivity.GetInteraction()?.Intent as HDLRunSceneIntent;
-            if (!(intent is null))
-            {
-                HandleIntent(intent);
-                return true;
-            }
-            else if (userActivity.ActivityType == NSUserActivityHelper.ViewMenuActivityType)
-            {
-                HandleUserActivity();
-                return true;
-            }
-            return false;
-        }
-
-        void HandleIntent(HDLRunSceneIntent intent)
-        {
-            var handler = new HDLRunSceneIntentHandlder();
-            handler.HandleRunScene(intent, (response) => {
-                if (response.Code != HDLRunSceneIntentResponseCode.Success)
-                {
-                    Console.WriteLine("Quantity must be greater than 0 to add to order");
-                }
-            });
-        }
-
-        void HandleUserActivity()
-        {
-            //var rootViewController = Window?.RootViewController as UINavigationController;
-            //var orderHistoryViewController = rootViewController?.ViewControllers?.FirstOrDefault() as OrderHistoryTableViewController;
-            //if (orderHistoryViewController is null)
-            //{
-            //    Console.WriteLine("Failed to access OrderHistoryTableViewController.");
-            //    return;
-            //}
-            //var segue = OrderHistoryTableViewController.SegueIdentifiers.SoupMenu;
-            //orderHistoryViewController.PerformSegue(segue, null);
-        }
-        #endregion
 
 
     }

--
Gitblit v1.8.0