Instance Method

removeAction(_:completionHandler:)

Removes an action from the action set.

Declaration

func removeAction(_ action: HMAction, completionHandler completion: @escaping (Error?) -> Void)

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

var actions: Set<HMAction>

Set of actions in the action set.

class HMCharacteristicWriteAction

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

class HMAction

An abstract base class for actions in HomeKit.