HMHome.AddServiceGroupAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a service group named serviceGroupName
to the home and runs completion
after it has been added.
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<HomeKit.HMServiceGroup> AddServiceGroupAsync (string serviceGroupName);
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