Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 417 Bytes

saveLeanBodyMass.md

File metadata and controls

18 lines (16 loc) · 417 Bytes

save a numeric lean body mass value to Healthkit

saveLeanBodyMass accepts an options object containing a numeric weight value:

let options = {
  value: 155.6 // lbs
}
AppleHealthKit.saveLeanBodyMass(options: Object, (err: Object, results: Object) => {
    if (err) {
        console.log("error saving lean body mass to Healthkit: ", err);
        return;
    }
    // Done
});