getHeight

fun <T> getHeight(units: HeightUnits, cls: Class<T>): T

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

Float heightFT = healbeUser.getBodyMeasurements().getHeight(HeightUnits.FT, Float.class);

FtInPair heightFtIn = healbeUser.getBodyMeasurements().getHeight(HeightUnits.FT_IN, FtInPair.class);

Return

converted value with defined class, return value class defined and documented in HeightUnits

See also

Parameters

units

unit to convert value

cls

class for converted value

Throws