Package-level declarations

Types

Link copied to clipboard

Formats distance to appropriate units depending on distanceUnit.

Functions

Link copied to clipboard
fun getNormalizedBatteryLevel(currentChargeKwh: Double, maxChargeKwh: Double): Double

Returns normalized Double value for battery charge level.

Link copied to clipboard
fun getPercentageBatteryLevel(currentCharge: Energy, maxCharge: Energy): Int

Returns percentage Int value for battery charge level.

Link copied to clipboard

Returns true if comma separated 2-letter country code string pattern is valid.