# ClosureDimension

# ClosureDimension


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface ClosureDimension : ClosureDimensionTrait.Attributes, MatterTrait, ClosureDimensionCommands
```

<br />

*** ** * ** ***

API for the ClosureDimension trait. This trait provides an interface for controlling a single degree of freedom (also referred to as a *dimension* or an *axis*) of a composed closure. Some device types may define that a Closure Dimension trait instance is associated with a corresponding Closure Control trait instance on the same device. In such cases, the Closure Dimension trait does not operate independently, rather, it relies on the Closure Control trait for supervisory logic.

## Summary

| ### Nested types |
|---|
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimension.Attribute : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this trait's attributes. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimension.Command : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html` Descriptor enum for this trait's commands. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimension#supports(com.google.home.matter.standard.ClosureDimension.Attribute)(attribute: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimension.Attribute)` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimension#supports(com.google.home.matter.standard.ClosureDimension.Command)(command: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimension.Command)` |

| ### Public properties |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<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#factory()` |

| ### Inherited functions |
|---|
| From [com.google.home.matter.standard.ClosureDimensionCommands](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionCommands) |---|---| | `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. | |
| From [com.google.home.matter.standard.ClosureDimensionTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes) |---|---| | `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#getDescriptor()()` Returns the descriptor for the struct. | | `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. | |
| From [com.google.home.TraitStateInvalidation](https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation) |---|---| | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation#forceRead()()` | |

| ### Inherited properties |
|---|
| From [com.google.home.matter.standard.ClosureDimensionTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#acceptedCommandList()` A list of client-generated commands which are supported by this cluster server instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#attributeList()` A list of the attribute IDs of the attributes supported by the cluster instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#clusterRevision()` The revision of the server cluster specification supported by the cluster instance. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.DimensionStateStruct?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#currentState()` The current state of the closure dimension, including its `Latch`, `Position`, and `Speed`, as defined in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.DimensionStateStruct`. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#featureMap()` Whether the server supports zero or more optional cluster features. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#generatedCommandList()` A list of server-generated commands (server to client) which are supported by this cluster server instance. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.LatchControlModesBitmap?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#latchControlModes()` Whether the latch mechanism can be latched or unlatched remotely, as defined in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.LatchControlModesBitmap`. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.RangePercent100thsStruct?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#limitRange()` The range of possible values for the `Position` field in the `CurrentState` attribute. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.ModulationTypeEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#modulationType()` The modulation type of the closure dimension, as defined in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.ModulationTypeEnum`. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.OverflowEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#overflow()` The overflow direction of the closure, as defined in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.OverflowEnum`. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#resolution()` The minimal acceptable change to the `Position` field of the `targetState` and `currentState` attributes. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.RotationAxisEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#rotationAxis()` The axis of rotation for the closure dimension, as defined in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.RotationAxisEnum`. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#stepValue()` The size of a single step, in hundredths of a percent. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.DimensionStateStruct?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#targetState()` The target state of the closure dimension, including its `Latch`, `Position`, and `Speed`, as defined in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.DimensionStateStruct`. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.TranslationDirectionEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#translationDirection()` The direction of translation for the closure dimension, as defined in the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.TranslationDirectionEnum`. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.ClosureUnitEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#unit()` The unit related to the position of the closure, where the unit is defined in `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.ClosureUnitEnum`. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.UnitRangeStruct?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ClosureDimensionTrait.Attributes#unitRange()` The physical range of the closure's movement, expressed as minimum and maximum values of the unit of measurement. | |
| From [com.google.home.Trait](https://developers.home.google.com/reference/kotlin/com/google/home/Trait) |---|---| | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait#metadata()` | |

## Public functions

### supports

```
fun supports(attribute: ClosureDimension.Attribute): Boolean
```

### supports

```
fun supports(command: ClosureDimension.Command): Boolean
```

## Public properties

### factory

```
open val factory: TraitFactory<ClosureDimension>
```