HMHome.AddActionSet(String, Action<HMActionSet,NSError>) Método

Definición

Agrega un conjunto de acciones denominado actionSetName al inicio y se ejecuta completion después de agregarlo.

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

Parámetros

actionSetName
String
completion
Action<HMActionSet,NSError>

Un controlador que se devuelve null correctamente o un objeto de error en caso de error.

Atributos

Se aplica a