Commit 98ac5244 authored by Greg Wilson's avatar Greg Wilson Committed by GitHub

added getLatestBodyFatPercentage method docs

parent f40e7dac
...@@ -16,6 +16,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data. ...@@ -16,6 +16,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data.
* [saveWeight](#saveweight) * [saveWeight](#saveweight)
* [getLatestHeight](#getlatestheight) * [getLatestHeight](#getlatestheight)
* [getLatestBmi](#getlatestbmi) * [getLatestBmi](#getlatestbmi)
* [getLatestBodyFatPercentage](#getlatestbodyfatpercentage)
## Getting started ## Getting started
...@@ -220,6 +221,20 @@ AppleHealthKit.getLatestBmi(null, (err: string, bmi: Object) => { ...@@ -220,6 +221,20 @@ AppleHealthKit.getLatestBmi(null, (err: string, bmi: Object) => {
}); });
``` ```
___
#### **`getLatestBodyFatPercentage`**
get the most recent body fat percentage. the value is a percentage between 0 and 100
```javascript
AppleHealthKit.getLatestBodyFatPercentage(null, (err: Object, bodyFatPercentage: number) => {
if(this._handleHealthKitError(err, 'getLatestBodyFatPercentage')){
return;
}
// bodyFatPercentage now available as number
// ...
});
```
[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