# ApplicationErrorReport.BatteryInfo

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# BatteryInfo

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/app/ApplicationErrorReport.BatteryInfo "View this page in Java")  

```
open class BatteryInfo
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                   ||
| ↳ | [android.app.ApplicationErrorReport.BatteryInfo](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.BatteryInfo#) |

Describes a battery usage report.

## Summary

|                                                                                                                                           Public constructors                                                                                                                                            ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [BatteryInfo](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.BatteryInfo#BatteryInfo())`()` Create an uninitialized instance of BatteryInfo.                                                                                                                       |
| [BatteryInfo](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.BatteryInfo#BatteryInfo(android.os.Parcel))`(`in:` `[Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#)!`)` Create an instance of BatteryInfo initialized from a Parcel. |

|                                                                                                                                                                                                                                 Public methods                                                                                                                                                                                                                                 ||
|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [dump](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.BatteryInfo#dump(android.util.Printer,%20kotlin.String))`(`pw:` `[Printer](https://developer.android.com/reference/kotlin/android/util/Printer.html#)!`, `prefix:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Dump a BatteryInfo instance to a Printer.  |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [writeToParcel](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.BatteryInfo#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#)!`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Save a BatteryInfo instance to a parcel. |

|                                                                                                                                                     Properties                                                                                                                                                      ||
|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [checkinDetails](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.BatteryInfo#checkinDetails:kotlin.String) Checkin details.                                                                    |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)      | [durationMicros](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.BatteryInfo#durationMicros:kotlin.Long) Duration in microseconds over which the process used the above percentage of battery. |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [usageDetails](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.BatteryInfo#usageDetails:kotlin.String) Dump of various info impacting battery use.                                             |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)        | [usagePercent](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.BatteryInfo#usagePercent:kotlin.Int) Percentage of the battery that was used up by the process.                                 |

## Public constructors

### BatteryInfo

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
BatteryInfo()
```

Create an uninitialized instance of BatteryInfo.  

### BatteryInfo

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
BatteryInfo(in: Parcel!)
```

Create an instance of BatteryInfo initialized from a Parcel.

## Public methods

### dump

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun dump(
    pw: Printer!, 
    prefix: String!
): Unit
```

Dump a BatteryInfo instance to a Printer.  

### writeToParcel

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun writeToParcel(
    dest: Parcel!, 
    flags: Int
): Unit
```

Save a BatteryInfo instance to a parcel.

## Properties

### checkinDetails

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var checkinDetails: String!
```

Checkin details.  

### durationMicros

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var durationMicros: Long
```

Duration in microseconds over which the process used the above percentage of battery.  

### usageDetails

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var usageDetails: String!
```

Dump of various info impacting battery use.  

### usagePercent

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var usagePercent: Int
```

Percentage of the battery that was used up by the process.