HMZone.RemoveRoom(HMRoom, Action<NSError>) 方法

定义

room从区域中删除并在区域完成后运行completion

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

参数

room
HMRoom
completion
Action<NSError>

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

属性

适用于