HMTrigger.AddActionSet(HMActionSet, Action<NSError>) 方法

定义

将 添加到 actionSet 此触发器运行并在添加后运行 completion 的操作集列表。

[Foundation.Export("addActionSet:completionHandler:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddActionSet(HomeKit.HMActionSet actionSet, Action<Foundation.NSError> completion);
abstract member AddActionSet : HomeKit.HMActionSet * Action<Foundation.NSError> -> unit
override this.AddActionSet : HomeKit.HMActionSet * Action<Foundation.NSError> -> unit

参数

actionSet
HMActionSet
completion
Action<NSError>

一个在成功时返回的 null 处理程序,或在失败时返回错误对象。

属性

适用于