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
2d3897f7
Commit
2d3897f7
authored
Apr 29, 2019
by
Andrew Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add docs for getBodyFatPercentageSamples and getLeanBodyMassSamples
parent
c2f221a5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
README.md
README.md
+2
-0
docs/getBodyFatPercentageSamples().md
docs/getBodyFatPercentageSamples().md
+27
-0
docs/getLeanBodyMassSamples().md
docs/getLeanBodyMassSamples().md
+28
-0
No files found.
README.md
View file @
2d3897f7
...
...
@@ -128,8 +128,10 @@ AppleHealthKit.initHealthKit(options: Object, (err: string, results: Object) =>
*
[
getHeightSamples
](
/docs/getHeightSamples(
)
.md)
*
[
getLatestBmi
](
/docs/getLatestBmi(
)
.md)
*
[
getLatestBodyFatPercentage
](
/docs/getLatestBodyFatPercentage(
)
.md)
*
[
getBodyFatPercentageSamples
](
/docs/getBodyFatPercentageSamples(
)
.md)
*
[
getLatestHeight
](
/docs/getLatestHeight(
)
.md)
*
[
getLatestLeanBodyMass
](
/docs/getLatestLeanBodyMass(
)
.md)
*
[
getLeanBodyMassSamples
](
/docs/getLeanBodyMassSamples(
)
.md)
*
[
getLatestWeight
](
/docs/getLatestWeight(
)
.md)
*
[
getRespiratoryRateSamples
](
/docs/getRespiratoryRateSamples(
)
.md)
*
[
getSleepSamples
](
/docs/getSleepSamples(
)
.md)
...
...
docs/getBodyFatPercentageSamples().md
0 → 100644
View file @
2d3897f7
Query for body fat percentage samples. the options object is used to setup a query to retrieve relevant samples.
```
javascript
let
options
=
{
startDate
:
(
new
Date
(
2016
,
4
,
27
)).
toISOString
(),
// required
endDate
:
(
new
Date
()).
toISOString
(),
// optional; default now
ascending
:
false
,
// optional; default false
limit
:
10
,
// optional; default no limit
};
```
```
javascript
AppleHealthKit
.
getBodyFatPercentageSamples
(
options
,
(
err
:
Object
,
results
:
Array
<
Object
>
)
=>
{
if
(
err
)
{
return
;
}
console
.
log
(
results
)
});
```
```
javascript
[
{
value
:
16.5
,
startDate
:
'
2016-07-09T00:00:00.000-0400
'
,
endDate
:
'
2016-07-10T00:00:00.000-0400
'
},
{
value
:
16.1
,
startDate
:
'
2016-07-08T00:00:00.000-0400
'
,
endDate
:
'
2016-07-09T00:00:00.000-0400
'
},
{
value
:
15.9
,
startDate
:
'
2016-07-07T00:00:00.000-0400
'
,
endDate
:
'
2016-07-08T00:00:00.000-0400
'
},
]
```
docs/getLeanBodyMassSamples().md
0 → 100644
View file @
2d3897f7
Query for lean body mass samples. the options object is used to setup a query to retrieve relevant samples.
```
javascript
let
options
=
{
unit
:
'
pound
'
,
// optional; default 'pound'
startDate
:
(
new
Date
(
2016
,
4
,
27
)).
toISOString
(),
// required
endDate
:
(
new
Date
()).
toISOString
(),
// optional; default now
ascending
:
false
,
// optional; default false
limit
:
10
,
// optional; default no limit
};
```
```
javascript
AppleHealthKit
.
getLeanBodyMassSamples
(
options
,
(
err
:
Object
,
results
:
Array
<
Object
>
)
=>
{
if
(
err
)
{
return
;
}
console
.
log
(
results
)
});
```
```
javascript
[
{
value
:
160
,
startDate
:
'
2016-07-09T00:00:00.000-0400
'
,
endDate
:
'
2016-07-10T00:00:00.000-0400
'
},
{
value
:
161
,
startDate
:
'
2016-07-08T00:00:00.000-0400
'
,
endDate
:
'
2016-07-09T00:00:00.000-0400
'
},
{
value
:
165
,
startDate
:
'
2016-07-07T00:00:00.000-0400
'
,
endDate
:
'
2016-07-08T00:00:00.000-0400
'
},
]
```
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