Class

HMCharacteristicWriteAction

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

Declaration

@interface HMCharacteristicWriteAction<__covariant TargetValueType> : HMAction

Overview

Action sets are instances of HMActionSet.

Topics

New Methods

- initWithCharacteristic:targetValue:

Initialize a characteristic write action with a specified characteristic and target value.

characteristic

The characteristic whose value is to be written by the action.

targetValue

The value that will be written to the characteristic when the action is executed.

Relationships

Inherits From

See Also

Defining the Associated Actions

actions

Set of actions in the action set.

- addAction:completionHandler:

Adds an action to the action set.

- removeAction:completionHandler:

Removes an action from the action set.

HMAction

An abstract base class for actions in HomeKit.