setHeight

fun <T : Any> setHeight(height: T, units: HeightUnits, cls: Class<T>)

Set user height in defined units, for example

FtInPair heightFtIn = new FtInPair(5, 11); // ~180cm

healbeUser.getBodyMeasurements().setHeight(heightFtIn, HeightUnits.FT_IN, FtInPair.class)

Parameters

height

height in defined units

units

class of units value

cls

class of units value

Throws

when height converted in cm not in 50, 230