Device App APIhmSetting OS ModulegetWeightUnitVersion: v1.0On this pagehmSetting.getWeightUnit()Get the weight unit set by the user. Type () => weightUnit Return value weightUnit: number ValueDescription0Kilogram1Jin2Pound3Stone Code examples const unit = hmSetting.getWeightUnit()