Condividi tramite


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

Definizione

Aggiunge un gruppo di servizi denominato serviceGroupName alla home e viene eseguito completion dopo l'aggiunta.

[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

Parametri

serviceGroupName
String
completion
Action<HMServiceGroup,NSError>

Gestore che restituisce l'esito positivo null o un oggetto di errore in caso di errore.

Attributi

Si applica a