# 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)

*** ** * ** ***


```
public final class PowerMetric.Type.Battery extends PowerMetric.Type
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.benchmark.macro.PowerMetric.Type](https://developer.android.com/reference/androidx/benchmark/macro/PowerMetric.Type) ||
|   | ↳ | [androidx.benchmark.macro.PowerMetric.Type.Battery](https://developer.android.com/reference/androidx/benchmark/macro/PowerMetric.Type.Battery) |

*** ** * ** ***

## Summary

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

| ### Inherited methods |
|---|
| From [androidx.benchmark.macro.PowerMetric.Type](https://developer.android.com/reference/androidx/benchmark/macro/PowerMetric.Type) |---|---| | `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/benchmark/macro/PowerCategory, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/benchmark/macro/PowerCategoryDisplayLevel>` | `https://developer.android.com/reference/androidx/benchmark/macro/PowerMetric.Type#getCategories()()` A map which is used to configure which metrics are displayed. | | `final void` | `https://developer.android.com/reference/androidx/benchmark/macro/PowerMetric.Type#setCategories(kotlin.collections.Map)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/benchmark/macro/PowerCategory, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/benchmark/macro/PowerCategoryDisplayLevel> value )` | |

## Public constructors

### Battery

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

```
public Battery()
```