Skip to main content
Version: v3.x

getWeightUnit

Get the weight unit set by the user.

Type

() => weightUnit

Return value

weightUnit: number

ValueDescription
0Kilogram
1Jin
2Pound
3Stone

Code examples

const unit = hmSetting.getWeightUnit()