getWeight

fun <T> getWeight(units: WeightUnits, cls: Class<T>): T

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

Float weightLBS = healbeUser.getBodyMeasurements().getWeight(WeightUnits.LBS, Float.class);

StLbsPair weightFtIn = healbeUser.getBodyMeasurements().getWeight(StLbsPair.ST_LBS, StLbsPair.class);

Return

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

Parameters

units

unit to convert value

cls

class for converted value