HMHome.AddServiceGroupAsync(String) 方法

定义

将名为 的服务 serviceGroupName 组添加到主页并在添加后运行 completion

[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>

参数

serviceGroupName
String

返回

表示异步 AddServiceGroup 操作的任务。 TResult 参数的值的类型为 System.Action<HomeKit.HMServiceGroup,Foundation.NSError>。

属性

适用于