次の方法で共有


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> 型です。

属性

適用対象