# OnOffTrait.Feature

# OnOffTrait.Feature


```
data class OnOffTrait.Feature
```

<br />

*** ** * ** ***

OnOff cluster FeatureMap.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Feature#Feature(kotlin.Boolean,kotlin.Boolean,kotlin.Boolean)(lighting: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, deadFrontBehavior: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, offOnly: 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/OnOffTrait.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/OnOffTrait.Feature#deadFrontBehavior()` Device supports dead front behavior when the `onOff` attribute is false. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Feature#lighting()` Device has behavior that supports lighting apps. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OnOffTrait.Feature#offOnly()` |

## Public constructors

### Feature

```
Feature(
    lighting: Boolean = false,
    deadFrontBehavior: Boolean = false,
    offOnly: Boolean = false
)
```

Creates the Feature data class.

## Public functions

### toRaw

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

Convert this ClusterBitmap to raw (bytes) format

## Public properties

### deadFrontBehavior

```
val deadFrontBehavior: Boolean
```

Device supports dead front behavior when the `onOff` attribute is false.

### lighting

```
val lighting: Boolean
```

Device has behavior that supports lighting apps.

### offOnly

```
val offOnly: Boolean
```