From f26dfd48aa7bf4c194863cc3b3f47d38bc8a2d57 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 26 十一月 2021 09:20:45 +0800
Subject: [PATCH] 2021-11-26 1.更新
---
Shared.IOS.HDLSceneSiri/Shared.IOS.HDLSceneSiri/ApiDefinition.cs | 157 ++++++++++++++++++++++++++-------------------------
1 files changed, 80 insertions(+), 77 deletions(-)
diff --git a/Shared.IOS.HDLSceneSiri/Shared.IOS.HDLSceneSiri/ApiDefinition.cs b/Shared.IOS.HDLSceneSiri/Shared.IOS.HDLSceneSiri/ApiDefinition.cs
index d098ab4..38b1264 100644
--- a/Shared.IOS.HDLSceneSiri/Shared.IOS.HDLSceneSiri/ApiDefinition.cs
+++ b/Shared.IOS.HDLSceneSiri/Shared.IOS.HDLSceneSiri/ApiDefinition.cs
@@ -6,83 +6,7 @@
namespace HDLSceneSiri
{
- // @interface HDLRunSceneIntent : INIntent
- [Watch(5, 0), NoTV, Mac(11, 0), iOS(12, 0)]
- [BaseType(typeof(INIntent))]
- interface HDLRunSceneIntent
- {
- // @property (readwrite, copy, nonatomic) NSString * _Nullable sceneName;
- [NullAllowed, Export("sceneName")]
- string SceneName { get; set; }
-
- // @property (readwrite, copy, nonatomic) NSString * _Nullable sceneId;
- [NullAllowed, Export("sceneId")]
- string SceneId { get; set; }
- }
-
- // @protocol HDLRunSceneIntentHandling <NSObject>
- /*
- Check whether adding [Model] to this declaration is appropriate.
- [Model] is used to generate a C# class that implements this protocol,
- and might be useful for protocols that consumers are supposed to implement,
- since consumers can subclass the generated class instead of implementing
- the generated interface. If consumers are not supposed to implement this
- protocol, then [Model] is redundant and will generate code that will never
- be used.
-*/
- [Watch(5, 0), NoTV, Mac(11, 0), iOS(12, 0)]
- [Protocol]
- [BaseType(typeof(NSObject))]
- interface HDLRunSceneIntentHandling
- {
- // @required -(void)handleRunScene:(HDLRunSceneIntent * _Nonnull)intent completion:(void (^ _Nonnull)(HDLRunSceneIntentResponse * _Nonnull))completion __attribute__((swift_name("handle(intent:completion:)")));
- [Abstract]
- [Export("handleRunScene:completion:")]
- void HandleRunScene(HDLRunSceneIntent intent, Action<HDLRunSceneIntentResponse> completion);
-
- // @optional -(void)confirmRunScene:(HDLRunSceneIntent * _Nonnull)intent completion:(void (^ _Nonnull)(HDLRunSceneIntentResponse * _Nonnull))completion __attribute__((swift_name("confirm(intent:completion:)")));
- [Export("confirmRunScene:completion:")]
- void ConfirmRunScene(HDLRunSceneIntent intent, Action<HDLRunSceneIntentResponse> completion);
- }
-
- // @interface HDLRunSceneIntentResponse : INIntentResponse
- [Watch(5, 0), NoTV, Mac(11, 0), iOS(12, 0)]
- [BaseType(typeof(INIntentResponse))]
- [DisableDefaultCtor]
- interface HDLRunSceneIntentResponse
- {
- // -(instancetype _Nonnull)initWithCode:(HDLRunSceneIntentResponseCode)code userActivity:(NSUserActivity * _Nullable)userActivity __attribute__((objc_designated_initializer));
- [Export("initWithCode:userActivity:")]
- [DesignatedInitializer]
- IntPtr Constructor(HDLRunSceneIntentResponseCode code, [NullAllowed] NSUserActivity userActivity);
-
- // +(instancetype _Nonnull)successIntentResponseWithSceneName:(NSString * _Nonnull)sceneName __attribute__((swift_name("success(sceneName:)")));
- [Static]
- [Export("successIntentResponseWithSceneName:")]
- HDLRunSceneIntentResponse SuccessIntentResponseWithSceneName(string sceneName);
-
- // +(instancetype _Nonnull)failureIntentResponseWithErrorMessage:(NSString * _Nonnull)errorMessage __attribute__((swift_name("failure(errorMessage:)")));
- [Static]
- [Export("failureIntentResponseWithErrorMessage:")]
- HDLRunSceneIntentResponse FailureIntentResponseWithErrorMessage(string errorMessage);
-
- // @property (readwrite, copy, nonatomic) NSString * _Nullable errorMessage;
- [NullAllowed, Export("errorMessage")]
- string ErrorMessage { get; set; }
-
- // @property (readwrite, copy, nonatomic) NSString * _Nullable successMessage;
- [NullAllowed, Export("successMessage")]
- string SuccessMessage { get; set; }
-
- // @property (readwrite, copy, nonatomic) NSString * _Nullable sceneName;
- [NullAllowed, Export("sceneName")]
- string SceneName { get; set; }
-
- // @property (readonly, nonatomic) HDLRunSceneIntentResponseCode code;
- [Export("code")]
- HDLRunSceneIntentResponseCode Code { get; }
- }
-
+
// @interface HDLSiriSceneListViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
[BaseType(typeof(UIViewController))]
interface HDLSiriSceneListViewController : IUITableViewDataSource, IUITableViewDelegate
@@ -119,4 +43,83 @@
[Export("name")]
string Name { get; set; }
}
+
+ // @interface HDLRunSceneIntent : INIntent
+ //[Watch(5, 0), NoTV, Mac(11, 0), iOS(12, 0)]
+ [BaseType(typeof(INIntent))]
+ interface HDLRunSceneIntent
+ {
+ // @property (readwrite, copy, nonatomic) NSString * _Nullable sceneName;
+ [NullAllowed, Export("sceneName")]
+ string SceneName { get; set; }
+
+ // @property (readwrite, copy, nonatomic) NSString * _Nullable sceneId;
+ [NullAllowed, Export("sceneId")]
+ string SceneId { get; set; }
+ }
+
+ // @protocol HDLRunSceneIntentHandling <NSObject>
+ /*
+ Check whether adding [Model] to this declaration is appropriate.
+ [Model] is used to generate a C# class that implements this protocol,
+ and might be useful for protocols that consumers are supposed to implement,
+ since consumers can subclass the generated class instead of implementing
+ the generated interface. If consumers are not supposed to implement this
+ protocol, then [Model] is redundant and will generate code that will never
+ be used.
+*/
+
+ //[Watch(5, 0), NoTV, Mac(11, 0), iOS(12, 0)]
+ //[Protocol]
+ [Protocol, Model]
+ [BaseType(typeof(NSObject))]
+ interface HDLRunSceneIntentHandling
+ {
+ // @required -(void)handleHDLRunScene:(HDLRunSceneIntent * _Nonnull)intent completion:(void (^ _Nonnull)(HDLRunSceneIntentResponse * _Nonnull))completion __attribute__((swift_name("handle(intent:completion:)")));
+ [Abstract]
+ [Export("handleHDLRunScene:completion:")]
+ void HandleHDLRunScene(HDLRunSceneIntent intent, Action<HDLRunSceneIntentResponse> completion);
+
+ // @optional -(void)confirmHDLRunScene:(HDLRunSceneIntent * _Nonnull)intent completion:(void (^ _Nonnull)(HDLRunSceneIntentResponse * _Nonnull))completion __attribute__((swift_name("confirm(intent:completion:)")));
+ [Export("confirmHDLRunScene:completion:")]
+ void ConfirmHDLRunScene(HDLRunSceneIntent intent, Action<HDLRunSceneIntentResponse> completion);
+ }
+
+ // @interface HDLRunSceneIntentResponse : INIntentResponse
+ //[Watch(5, 0), NoTV, Mac(11, 0), iOS(12, 0)]
+ [BaseType(typeof(INIntentResponse))]
+ [DisableDefaultCtor]
+ interface HDLRunSceneIntentResponse
+ {
+ // -(instancetype _Nonnull)initWithCode:(HDLRunSceneIntentResponseCode)code userActivity:(NSUserActivity * _Nullable)userActivity __attribute__((objc_designated_initializer));
+ [Export("initWithCode:userActivity:")]
+ [DesignatedInitializer]
+ IntPtr Constructor(HDLRunSceneIntentResponseCode code, [NullAllowed] NSUserActivity userActivity);
+
+ // +(instancetype _Nonnull)successIntentResponseWithSceneName:(NSString * _Nonnull)sceneName __attribute__((swift_name("success(sceneName:)")));
+ [Static]
+ [Export("successIntentResponseWithSceneName:")]
+ HDLRunSceneIntentResponse SuccessIntentResponseWithSceneName(string sceneName);
+
+ // +(instancetype _Nonnull)failureIntentResponseWithErrorMessage:(NSString * _Nonnull)errorMessage __attribute__((swift_name("failure(errorMessage:)")));
+ [Static]
+ [Export("failureIntentResponseWithErrorMessage:")]
+ HDLRunSceneIntentResponse FailureIntentResponseWithErrorMessage(string errorMessage);
+
+ // @property (readwrite, copy, nonatomic) NSString * _Nullable errorMessage;
+ [NullAllowed, Export("errorMessage")]
+ string ErrorMessage { get; set; }
+
+ // @property (readwrite, copy, nonatomic) NSString * _Nullable successMessage;
+ [NullAllowed, Export("successMessage")]
+ string SuccessMessage { get; set; }
+
+ // @property (readwrite, copy, nonatomic) NSString * _Nullable sceneName;
+ [NullAllowed, Export("sceneName")]
+ string SceneName { get; set; }
+
+ // @property (readonly, nonatomic) HDLRunSceneIntentResponseCode code;
+ [Export("code")]
+ HDLRunSceneIntentResponseCode Code { get; }
+ }
}
--
Gitblit v1.8.0