Instance Method

executeActionSet:completionHandler:

Executes all the actions in a specified action set.

Declaration

- (void)executeActionSet:(HMActionSet *)actionSet completionHandler:(void (^)(NSError *error))completion;

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

actionSets

An array of the action sets in the home.

- addActionSetWithName:completionHandler:

Adds a new action set to the home.

- removeActionSet:completionHandler:

Removes an action set from the home.

- builtinActionSetOfType:

Retrieves the builtin action set for the specified type.

HMActionSet

A collection of actions that you trigger as a group.