# PowerSourceTrait.Feature

# PowerSourceTrait.Feature


```
data class PowerSourceTrait.Feature
```

<br />

*** ** * ** ***

PowerSource trait FeatureMap.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.Feature#Feature(kotlin.Boolean,kotlin.Boolean,kotlin.Boolean,kotlin.Boolean)( wired: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, battery: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, rechargeable: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, replaceable: 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/PowerSourceTrait.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/PowerSourceTrait.Feature#battery()` The power source is a battery. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.Feature#rechargeable()` The power source is a rechargeable battery. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.Feature#replaceable()` The power source is a replaceable battery. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PowerSourceTrait.Feature#wired()` The power source is hard-wired. |

## Public constructors

### Feature

```
Feature(
    wired: Boolean = false,
    battery: Boolean = false,
    rechargeable: Boolean = false,
    replaceable: Boolean = false
)
```

Creates the Feature data class.

## Public functions

### toRaw

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

Convert this ClusterBitmap to raw (bytes) format

## Public properties

### battery

```
val battery: Boolean
```

The power source is a battery.

### rechargeable

```
val rechargeable: Boolean
```

The power source is a rechargeable battery.

### replaceable

```
val replaceable: Boolean
```

The power source is a replaceable battery.

### wired

```
val wired: Boolean
```

The power source is hard-wired.