Instance Method

addTrigger:completionHandler:

Adds a trigger to the home.

Declaration

- (void)addTrigger:(HMTrigger *)trigger completionHandler:(void (^)(NSError *error))completion;

Parameters

trigger

The name of the new trigger. Must not be nil, and must not be the name of a trigger already in the home.

completion

The block executed after the request is processed.

trigger

The newly created trigger.

error

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

See Also

Triggering an Action Set

triggers

An array of triggers defined in the home.

- removeTrigger:completionHandler:

Removes a trigger from the home.

HMTimerTrigger

A trigger to activate an action set based on a periodic timer.

HMEventTrigger

A trigger to activate an action set based on a set of events and optional conditions.

HMTrigger

An abstract base class for triggering actions based on a set of conditions.