From dd7e4794fd611de967c6322dd0bb7ffda41c2f7b Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 29 十一月 2021 16:32:55 +0800
Subject: [PATCH] 增加了安防相关功能

---
 SiriIntentsUI/IntentViewController.cs |   25 +++++++------------------
 1 files changed, 7 insertions(+), 18 deletions(-)

diff --git a/SiriIntentsUI/IntentViewController.cs b/SiriIntentsUI/IntentViewController.cs
index a613809..8cf1560 100644
--- a/SiriIntentsUI/IntentViewController.cs
+++ b/SiriIntentsUI/IntentViewController.cs
@@ -2,6 +2,7 @@
 
 using CoreGraphics;
 using Foundation;
+using HDLSceneSiri;
 //using HDLSceneSiri;
 using Intents;
 using IntentsUI;
@@ -55,26 +56,14 @@
 
 
 
-            //if (@available(iOS 12.0, *))
-            {
-                //HDLRunSceneIntentResponse rsp = interaction.IntentResponse as HDLRunSceneIntentResponse;
-                //if (rsp.Code == HDLRunSceneIntentResponseCode.Success)
-                //{
-                //    this.messageLabel.Text = rsp.SuccessMessage;
-                //}
-                //else if (rsp.Code == HDLRunSceneIntentResponseCode.Failure || rsp.Code == HDLRunSceneIntentResponseCode.Error)
-                //{
-                //    this.messageLabel.Text = rsp.ErrorMessage;
-                //}
-                //else
-                {
-                    //messageLabel.Text = "鎵ц鎴愬姛";// rsp.SuccessMessage;
-                }
-            }
-            CGSize size = new CGSize(DesiredSize().Width, 80);
+                HDLRunSceneIntentResponse rsp = interaction.IntentResponse as HDLRunSceneIntentResponse;
+            this.lblMsg.Text = rsp.SuccessMessage;
+            this.lblMsg.TextColor = UIColor.Black;
+            this.lblMsg.Frame = new CGRect(0, 0, DesiredSize().Width, 180);
+            CGSize size = new CGSize(DesiredSize().Width, 180);
 
 
-            //if (completion != null)
+            if (completion != null)
                 completion(true, parameters, size);
 
 

--
Gitblit v1.8.0