From d020a48f69f1acd8d97fc15372e19cde7779d934 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期一, 15 十一月 2021 10:46:43 +0800
Subject: [PATCH] 绑定source面板

---
 HDL-ON_iOS/AppDelegate.cs |   31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs
index 8ea5561..e7b6565 100644
--- a/HDL-ON_iOS/AppDelegate.cs
+++ b/HDL-ON_iOS/AppDelegate.cs
@@ -9,6 +9,7 @@
 using Microsoft.AppCenter.Crashes;
 using HDL_ON.UI;
 using HDL_ON.DAL.Server;
+using Intents;
 
 namespace SharedMethod
 {
@@ -245,6 +246,7 @@
 
         public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
         {
+            Console.WriteLine("111111111111");
             SetCurrentLanguage();
             //Shared.Application.FontSize = 12;
             //Bugly.Bugly.StartWithAppId("b58fb35436");
@@ -274,7 +276,34 @@
             //{
             //    //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;
+                }
+            });
+
+            var language = INPreferences.SiriLanguageCode;
+
+            // Take action based on language
+            if (language == "en-US")
+            {
+                // Do something...
+            }
+
+            #endregion
+
             Console.WriteLine("FinishedLaunching");
             return true;
         }

--
Gitblit v1.8.0