Instance Method

removeAction:completionHandler:

Removes an action from the action set.

Declaration

- (void)removeAction:(HMAction *)action completionHandler:(void (^)(NSError *error))completion;

Parameters

action

The action to remove.

completion

The block executed after the request is processed.

error

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

See Also

Defining the Associated Actions

actions

Set of actions in the action set.

- addAction:completionHandler:

Adds an action to the action set.

HMCharacteristicWriteAction

An action in an action set that writes a value to a characteristic.

HMAction

An abstract base class for actions in HomeKit.