BodyMeasurements

data class BodyMeasurements

User's body measurements.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Arm length only available in cm and has not setter (always default calculated value).

Link copied to clipboard

User's height in cm.

Link copied to clipboard

Step length in centimeters.

Link copied to clipboard

User weight in kg.

Functions

Link copied to clipboard
fun <T> getHeight(units: HeightUnits, cls: Class<T>): T

Get user height converted from inner cm units to one of the HeightUnits, for example:

Link copied to clipboard
fun <T> getStepLength(units: HeightUnits, cls: Class<T>): T

Get step length converted from inner cm units to one of the HeightUnits, for example:

Link copied to clipboard
fun <T> getWeight(units: WeightUnits, cls: Class<T>): T

Get user weight converted from inner kg units to one of the WeightUnits, for example:

Link copied to clipboard
fun <T : Any> setHeight(height: T, units: HeightUnits, cls: Class<T>)

Set user height in defined units, for example

Link copied to clipboard
fun <T : Any> setStepLength(stepLength: T, units: HeightUnits?, cls: Class<T>)

Set step length from value in defined units, for example:

Link copied to clipboard
fun <T : Any> setWeight(weight: T, units: WeightUnits, cls: Class<T>)

Set weight from weight in defined units, for example