saveLeanBodyMass().md 417 Bytes
Newer Older
Andrew Allen's avatar
Andrew Allen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
save a numeric lean body mass value to Healthkit

`saveLeanBodyMass` accepts an options object containing a numeric weight value:
```javascript
let options = {
  value: 155.6 // lbs
}
```

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