Compartir a través de


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

Definición

Agrega actionSet a la lista de conjuntos de acciones que ejecuta este desencadenador y se ejecuta completion después de que se haya agregado.

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

Parámetros

actionSet
HMActionSet
completion
Action<NSError>

Controlador que devuelve null correcto o un objeto de error en caso de error.

Atributos

Se aplica a