Instance Method

removeActionSet(_:completionHandler:)

Removes an action set from the home.

Declaration

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

Parameters

actionSet

The action set to remove.

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 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.