Bagikan melalui


HMHome.AddServiceGroup(String, Action<HMServiceGroup,NSError>) Metode

Definisi

Menambahkan grup layanan bernama serviceGroupName ke beranda dan berjalan completion setelah ditambahkan.

[Foundation.Export("addServiceGroupWithName:completionHandler:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddServiceGroup (string serviceGroupName, Action<HomeKit.HMServiceGroup,Foundation.NSError> completion);
abstract member AddServiceGroup : string * Action<HomeKit.HMServiceGroup, Foundation.NSError> -> unit
override this.AddServiceGroup : string * Action<HomeKit.HMServiceGroup, Foundation.NSError> -> unit

Parameter

serviceGroupName
String
completion
Action<HMServiceGroup,NSError>

Handler yang kembali null berhasil, atau objek kesalahan pada kegagalan.

Atribut

Berlaku untuk