Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rn-apple-healthkit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ym
rn-apple-healthkit
Commits
98ac5244
Commit
98ac5244
authored
Jun 27, 2016
by
Greg Wilson
Committed by
GitHub
Jun 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added getLatestBodyFatPercentage method docs
parent
f40e7dac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
README.md
README.md
+15
-0
No files found.
README.md
View file @
98ac5244
...
@@ -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/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment