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
ea00912f
Commit
ea00912f
authored
Mar 30, 2017
by
skleest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme
parent
0e38039f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
README.md
README.md
+17
-1
No files found.
README.md
View file @
ea00912f
...
...
@@ -42,6 +42,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data.
*
[
getRespiratoryRateSamples
](
#getrespiratoryratesamples
)
*
[
getBloodGlucoseSamples
](
#getbloodglucosesamples
)
*
[
getSleepSamples
](
#getsleepsamples
)
*
[
saveMindfulSession
](
#saveMindfulSession
)
*
[
Examples
](
#examples
)
...
...
@@ -155,7 +156,8 @@ The available HealthKit permissions to use with `initHealthKit`
| BloodGlucose |
[
HKQuantityTypeIdentifierBloodGlucose
](
https://developer.apple.com/reference/healthkit/hkquantitytypeidentifierbloodglucose?language=objc
)
| ✓ |
|
| SleepAnalysis |
[
HKCategoryTypeIdentifierSleepAnalysis
](
https://developer.apple.com/reference/healthkit/hkcategorytypeidentifiersleepanalysis?language=objc
)
| ✓ |
|
| MindfulSession |
[
HKCategoryTypeIdentifierMindfulSession
](
https://developer.apple.com/reference/healthkit/hkcategorytypeidentifiermindfulsession?language=objc
)
| | ✓ |
These permissions are exported as constants of the
`react-native-apple-healthkit`
module.
...
...
@@ -911,6 +913,20 @@ AppleHealthKit.getSleepSamples(options, (err: Object, samples: Array<Object>) =>
});
```
__
_
#### **`saveMindfulSession`**
saveMindfulSession
each mindfulness sample represents a period of time with a startDate and an endDate.
the options must contain
`startDate`
and
`endDate`
```
javascript
let
options
=
{
startDate
:
(
new
Date
(
2016
,
10
,
1
)).
toISOString
(),
// required
endDate
:
(
new
Date
()).
toISOString
(),
// optional; default now
};
```
## Examples
...
...
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