HMHome.AddRoomAsync(String) Method

Definition

Asynchronously adds a room named roomName to the home.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<HomeKit.HMRoom> AddRoomAsync(string roomName);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member AddRoomAsync : string -> System.Threading.Tasks.Task<HomeKit.HMRoom>
override this.AddRoomAsync : string -> System.Threading.Tasks.Task<HomeKit.HMRoom>

Parameters

roomName
String

Returns

A task that represents the asynchronous AddRoom operation. The value of the TResult parameter is of type System.Action<HomeKit.HMRoom,Foundation.NSError>.

Attributes

Applies to