From 1635e5b2e6d853ef5d89f6ca3ef18edece91e7b1 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 23 十一月 2021 10:31:11 +0800
Subject: [PATCH] 1
---
HDL-ON_iOS/Other/Siri/SiriBaseView.cs | 38 ++++++++++++++++++++++++++++++++++----
1 files changed, 34 insertions(+), 4 deletions(-)
diff --git a/HDL-ON_iOS/Other/Siri/SiriBaseView.cs b/HDL-ON_iOS/Other/Siri/SiriBaseView.cs
index bf375b9..87c302e 100644
--- a/HDL-ON_iOS/Other/Siri/SiriBaseView.cs
+++ b/HDL-ON_iOS/Other/Siri/SiriBaseView.cs
@@ -1,6 +1,7 @@
锘縰sing System;
using CoreGraphics;
using Foundation;
+using HDL_ON.Entity;
using Intents;
using IntentsUI;
using UIKit;
@@ -9,14 +10,41 @@
{
public partial class SiriBaseView : UIViewController, IINUIAddVoiceShortcutViewControllerDelegate, IINUIEditVoiceShortcutViewControllerDelegate
{
+ VoiceShortcutDataManager VoiceShortcutDataManager;
public SiriBaseView() : base("SiriBaseView", null)
{
+ VoiceShortcutDataManager = new VoiceShortcutDataManager();
+ }
+
+ public override void ViewWillAppear(bool animated)
+ {
+ base.ViewWillAppear(animated);
+
+ //HDL_ON_iOS.AppDelegate.rootViewController.NavigationBarHidden = true;
+ HDL_ON_iOS.AppDelegate.rootViewController.SetNavigationBarHidden(false, true);
}
public override void ViewDidLoad()
{
base.ViewDidLoad();
// Perform any additional setup after loading the view, typically from a nib.
+ UserActivity = NSUserActivityHelper.ViewMenuActivity;
+
+
+ // var btnVS = new INUIAddVoiceShortcutButton(INUIAddVoiceShortcutButtonStyle.White);
+ // btnVS.Frame = new CGRect(20, 500, 280, 44);
+ //btnVS.Shortcut = VoiceShortcutDataManager.FirstTemp().Shortcut ;
+ // View.AddSubview(btnVS);
+
+ foreach(var localScene in FunctionList.List.scenes)
+ {
+ var cell = new UIView();
+ cell.Frame = new CGRect(20, 800, 300, 60);
+ }
+
+
+ var ddd = Xamarin.Essentials.DeviceInfo.VersionString;
+
@@ -24,14 +52,12 @@
var btn = UIButton.FromType(UIButtonType.System);
btn.Frame = new CGRect(20, 200, 280, 44);
btn.SetTitle("Click Me", UIControlState.Normal);
-
-
- VoiceShortcutDataManager VoiceShortcutDataManager = new VoiceShortcutDataManager();
btn.TouchUpInside += (sender, e) =>
{
+
//HDL_ON_iOS.AppDelegate.rootViewController.SetNavigationBarHidden(HDL_ON_iOS.AppDelegate.rootViewController.NavigationBarHidden ? false : true, true);
var ss = new SiriScene() { Id = Guid.NewGuid().ToString(), Name = Guid.NewGuid().ToString() };
- //INVoiceShortcut existingShortcut = VoiceShortcutDataManager?.VoiceShortcutForOrder(ss);
+ INVoiceShortcut existingShortcut = VoiceShortcutDataManager?.VoiceShortcutForOrder(ss);
//if (!(existingShortcut is null))
//{
// var editVoiceShortcutViewController = new INUIEditVoiceShortcutViewController(existingShortcut);
@@ -42,6 +68,10 @@
{
// Since the app isn't yet managing a voice shortcut for
// this order, present the add view controller
+
+
+ new SceneDateManager().PlaceOrder(ss);
+
INShortcut newShortcut = new INShortcut(ss.Intent);
if (!(newShortcut is null))
{
--
Gitblit v1.8.0