Instance Method

addActionSet(withName:completionHandler:)

Adds a new action set to the home.

Declaration

func addActionSet(withName actionSetName: String, completionHandler completion: @escaping (HMActionSet?, Error?) -> Void)

Parameters

actionSetName

The name of the new action set. Must not be nil, and must not be the name of an action set already in the home.

completion

The block executed after the request is processed.

actionSet

The newly created action set.

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 executeActionSet(HMActionSet, completionHandler: (Error?) -> Void)

Executes all the actions in a specified action set.

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.