Instance Method

removeTrigger:completionHandler:

Removes a trigger from the home.

Declaration

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

Parameters

trigger

The trigger to remove.

completion

The block executed after the request is processed.

error

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

Discussion

If trigger is enabled, removing it from the home disables it.

See Also

Triggering an Action Set

triggers

An array of triggers defined in the home.

- addTrigger:completionHandler:

Adds a trigger to 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.