setWeight

fun <T : Any> setWeight(weight: T, units: WeightUnits, cls: Class<T>)

Set weight from weight in defined units, for example

StLbsPair weightStLbs = new StLbsPair(12, 8); // ~80kg

healbeUser.getBodyMeasurements().setWeight(weightStLbs, WeightUnits.ST_LBS, StLbsPair.class)

Parameters

weight

weight in defined units

units

units

cls

class of units value

Throws

when weight converted to kg out of 30, 150