# PowerMetric.Type.Battery

Artifact: [androidx.benchmark:benchmark-macro](https://developer.android.com/jetpack/androidx/releases/benchmark) [View Source](https://cs.android.com/search?q=file:androidx/benchmark/macro/Metric.kt+class:androidx.benchmark.macro.PowerMetric.Type.Battery) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.2.0)

*** ** * ** ***


```
class PowerMetric.Type.Battery : PowerMetric.Type
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.benchmark.macro.PowerMetric.Type](https://developer.android.com/reference/kotlin/androidx/benchmark/macro/PowerMetric.Type) ||
|   | ↳ | [androidx.benchmark.macro.PowerMetric.Type.Battery](https://developer.android.com/reference/kotlin/androidx/benchmark/macro/PowerMetric.Type.Battery) |

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/benchmark/macro/PowerMetric.Type.Battery#Battery()()` |

| ### Inherited properties |
|---|
| From [androidx.benchmark.macro.PowerMetric.Type](https://developer.android.com/reference/kotlin/androidx/benchmark/macro/PowerMetric.Type) |---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://developer.android.com/reference/kotlin/androidx/benchmark/macro/PowerCategory, https://developer.android.com/reference/kotlin/androidx/benchmark/macro/PowerCategoryDisplayLevel>` | `https://developer.android.com/reference/kotlin/androidx/benchmark/macro/PowerMetric.Type#categories()` A map which is used to configure which metrics are displayed. | |

## Public constructors

### Battery

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.2.0)

```
Battery()
```