From 75b48c7a57ec0a132699612672a7ecdcbb3a5e72 Mon Sep 17 00:00:00 2001 From: Greg Wilson Date: Mon, 27 Jun 2016 03:06:04 -0400 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index b033555..7c80b89 100644 --- a/README.md +++ b/README.md @@ -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/ -- 2.26.2