HMActionSet.RemoveAction(HMAction, Action<NSError>) 方法

定义

action从操作集中删除并在操作完成后运行completion

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

参数

action
HMAction
completion
Action<NSError>

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

属性

适用于