BatteryProfile

data class BatteryProfile(batteryCapacity: Float, remainingCapacity: Float, batteryChargingThreshold: Float, batteryFullChargeThreshold: Float, batteryMinimumReserveThreshold: Float) : Parcelable

Constructors

BatteryProfile
Link copied to clipboard
fun BatteryProfile(batteryCapacity: Float, remainingCapacity: Float, batteryChargingThreshold: Float, batteryFullChargeThreshold: Float, batteryMinimumReserveThreshold: Float)

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

batteryCapacity
Link copied to clipboard
val batteryCapacity: Float
Battery capacity in kWh
batteryChargingThreshold
Link copied to clipboard
val batteryChargingThreshold: Float
Percent of capacity
batteryFullChargeThreshold
Link copied to clipboard
val batteryFullChargeThreshold: Float
Percent of capacity when battery is considered fully charged
batteryMinimumReserveThreshold
Link copied to clipboard
val batteryMinimumReserveThreshold: Float
Percent of capacity as safety (will be never used)
remainingCapacity
Link copied to clipboard
val remainingCapacity: Float
Remaining battery capacity in kWh