Instance Method

addActionSet(_:completionHandler:)

Adds an action set to the trigger.

Declaration

func addActionSet(_ actionSet: HMActionSet, completionHandler completion: @escaping (Error?) -> Void)

Parameters

actionSet

The new action set.

completion

The block executed after the request is processed.

error

nil on success; otherwise, error object indicating the reason for failure.

See Also

Managing Action Sets

var actionSets: [HMActionSet]

Array of all action sets that will be executed by the trigger.