Commit 75b48c7a authored by Greg Wilson's avatar Greg Wilson Committed by GitHub

Update README.md

parent 21e0d73d
...@@ -138,5 +138,19 @@ AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object ...@@ -138,5 +138,19 @@ AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object
}); });
``` ```
___
**`getCurrentWeight`** : get the most recent weight value
```javascript
AppleHealthKit.getCurrentWeight(null, (err, weight) => {
if(err){
console.log("error getting current weight: ", err);
return;
}
weight = _.round(weight,1);
// ...
});
```
[Apple HealthKit]: https://developer.apple.com/healthkit/ [Apple HealthKit]: https://developer.apple.com/healthkit/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment