Instance Method

updateName:completionHandler:

Updates the name of the trigger.

Declaration

- (void)updateName:(NSString *)name completionHandler:(void (^)(NSError *error))completion;

Parameters

name

The new name. Must be unique within the home.

completion

The block executed after the request is processed.

error

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

See Also

Managing Triggers

name

The name of the trigger.

enabled

State of the trigger.

- enable:completionHandler:

Changes the enabled state of the trigger.

lastFireDate

The last time this trigger fired.

uniqueIdentifier

A unique identifier for this trigger.