# ModeSelectTrait.Feature

# ModeSelectTrait.Feature


```
data class ModeSelectTrait.Feature
```

<br />

*** ** * ** ***

ModeSelect cluster FeatureMap.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Feature#Feature(kotlin.Boolean)(onOff: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` Creates the Feature data class. |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Feature#toRaw()()` Convert this ClusterBitmap to raw (bytes) format |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Feature#onOff()` The cluster instance has a dependency with an `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOff` cluster on the same endpoint. |

## Public constructors

### Feature

```
Feature(onOff: Boolean = false)
```

Creates the Feature data class.

## Public functions

### toRaw

```
open fun toRaw(): ULong
```

Convert this ClusterBitmap to raw (bytes) format

## Public properties

### onOff

```
val onOff: Boolean
```

The cluster instance has a dependency with an `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOff` cluster on the same endpoint. See the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ModeSelectTrait.Attributes#onMode()` attribute for more information.