Compartir a través de


HMZone.AddRoom(HMRoom, Action<NSError>) Método

Definición

Agrega room a la zona y se ejecuta completion una vez finalizada.

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

Parámetros

room
HMRoom
completion
Action<NSError>

Controlador que devuelve null correcto o un objeto de error en caso de error.

Atributos

Se aplica a