HMHome.AddServiceGroupAsync(String) Method

Definition

Asynchronously adds a service group named serviceGroupName to the home.

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

Parameters

serviceGroupName
String

Returns

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

Attributes

Applies to