Instance Method

updateEvents:completionHandler:

Updates the set of trigger events.

Declaration

- (void)updateEvents:(NSArray<HMEvent *> *)events completionHandler:(void (^)(NSError *error))completion;

Parameters

events

An array of events that replaces the events on the trigger.

completion

A block that executes after processing the request.

The block takes the following parameter:

error

If the request was successful, the value of error is nil; otherwise, the value provides more information about the request status.

See Also

Setting Trigger Events

events

The events that activate the trigger.

Location Events

Events that represent the user's movement among regions.

Time Events

Events based on time, significant occurrences, and time durations.

Characteristic Events

Events based on the capabilities or characteristics of accessories.

Presence Events

Events based on the user's presence in a home.

HMEvent

The abstract base class for a HomeKit event.