Instance Method

executeActionSet(_:completionHandler:)

Executes all the actions in a specified action set.

Declaration

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

Parameters

actionSet

The action set to execute.

completion

The block executed after the request is processed.

error

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

See Also

Creating Action Sets

var actionSets: [HMActionSet]

An array of the action sets in the home.

func builtinActionSet(ofType: String) -> HMActionSet?

Retrieves the builtin action set for the specified type.

class HMActionSet

A collection of actions that you trigger as a group.