Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 379 Bytes

saveWeight().md

File metadata and controls

18 lines (16 loc) · 379 Bytes

save a numeric weight value to Healthkit

saveWeight accepts an options object containing a numeric weight value:

let options = {
  value: 200
}
AppleHealthKit.saveWeight(options: Object, (err: Object, results: Object) => {
    if (err) {
        console.log("error saving weight to Healthkit: ", err);
        return;
    }
    // Done
});