# ClosureDimensionCommands

# ClosureDimensionCommands


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface ClosureDimensionCommands
```

<br />

Known direct subclasses [ClosureDimension](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimension)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimension` | API for the ClosureDimension trait. |

*** ** * ** ***

Commands for the ClosureDimension trait.

## Summary

| ### Public functions |
|---|---|
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionCommands#setTarget(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.SetTargetCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` Moves a dimension of the closure to a target position. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionCommands#setTargetBatchable(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.SetTargetCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionCommands#setTarget(kotlin.Function1)` command. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionCommands#step(com.google.home.matter.standard.ClosureDimensionTrait.StepDirectionEnum,kotlin.UShort,kotlin.Function1)( direction: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.StepDirectionEnum, numberOfSteps: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.StepCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html )` Moves a dimension of the closure by a specified number of steps to a target position. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionCommands#stepBatchable(com.google.home.matter.standard.ClosureDimensionTrait.StepDirectionEnum,kotlin.UShort,kotlin.Function1)( direction: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.StepDirectionEnum, numberOfSteps: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.StepCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionCommands#step(com.google.home.matter.standard.ClosureDimensionTrait.StepDirectionEnum,kotlin.UShort,kotlin.Function1)` command. |

## Public functions

### setTarget

```
suspend fun setTarget(optionalArgs: ClosureDimensionTrait.SetTargetCommand.OptionalArgs.() -> Unit = {}): Unit
```

Moves a dimension of the closure to a target position.

| Parameters |
|---|---|
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.SetTargetCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

### setTargetBatchable

```
fun setTargetBatchable(optionalArgs: ClosureDimensionTrait.SetTargetCommand.OptionalArgs.() -> Unit = {}): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionCommands#setTarget(kotlin.Function1)` command.

Moves a dimension of the closure to a target position.

| Parameters |
|---|---|
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.SetTargetCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |

### step

```
suspend fun step(
    direction: ClosureDimensionTrait.StepDirectionEnum,
    numberOfSteps: UShort,
    optionalArgs: ClosureDimensionTrait.StepCommand.OptionalArgs.() -> Unit = {}
): Unit
```

Moves a dimension of the closure by a specified number of steps to a target position.

| Parameters |
|---|---|
| `direction: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.StepDirectionEnum` | Indicates whether the `Position` field of the `TargetState` attribute must be increased toward 100.00% or decreased toward 0.00%. |
| `numberOfSteps: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | The number of steps by which the position should be changed. The size of one step, given in hundredths of a percent, is determined by the `stepValue` attribute. |
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.StepCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

### stepBatchable

```
fun stepBatchable(
    direction: ClosureDimensionTrait.StepDirectionEnum,
    numberOfSteps: UShort,
    optionalArgs: ClosureDimensionTrait.StepCommand.OptionalArgs.() -> Unit = {}
): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionCommands#step(com.google.home.matter.standard.ClosureDimensionTrait.StepDirectionEnum,kotlin.UShort,kotlin.Function1)` command.

Moves a dimension of the closure by a specified number of steps to a target position.

| Parameters |
|---|---|
| `direction: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.StepDirectionEnum` | Indicates whether the `Position` field of the `TargetState` attribute must be increased toward 100.00% or decreased toward 0.00%. |
| `numberOfSteps: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | The number of steps by which the position should be changed. The size of one step, given in hundredths of a percent, is determined by the `stepValue` attribute. |
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.StepCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |