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
72126472
Commit
72126472
authored
Jun 29, 2016
by
Greg Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated readme
parent
d5f10e70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
README.md
README.md
+35
-1
No files found.
README.md
View file @
72126472
...
@@ -197,8 +197,42 @@ AppleHealthKit.initHealthKit(options: Object, (err: string, res: Object) => {
...
@@ -197,8 +197,42 @@ AppleHealthKit.initHealthKit(options: Object, (err: string, res: Object) => {
__
_
__
_
#### **`getBiologicalSex`**
get the biological sex (gender). if the
`BiologicalSex`
read permission is missing or the user has denied it then the value will be
`unknown`
. the possible values are:
| Value | HKBiologicalSex |
|---------|-----------------------|
| unknown | HKBiologicalSexNotSet |
| male | HKBiologicalSexMale |
| female | HKBiologicalSexFemale |
| other | HKBiologicalSexOther |
```
javascript
AppleHealthKit
.
getBiologicalSex
(
null
,
(
err
:
Object
,
bioSex
:
string
)
=>
{
if
(
this
.
_handleHealthKitError
(
err
,
'
getBiologicalSex
'
)){
return
;
}
// use bioSex ...
});
```
__
_
#### **`getDateOfBirth`**
get the date of birth. this will be an ISO timestamp
```
javascript
AppleHealthKit
.
getDateOfBirth
(
null
,
(
err
:
Object
,
dob
:
string
)
=>
{
if
(
this
.
_handleHealthKitError
(
err
,
'
getDateOfBirth
'
)){
return
;
}
// use dob ...
});
```
__
_
#### **`getStepCountForToday`**
#### **`getStepCountForToday`**
get the
the
aggregated total steps for the current day starting and ending at midnight
get the aggregated total steps for the current day starting and ending at midnight
```
javascript
```
javascript
AppleHealthKit
.
getStepCountForToday
(
null
,
(
err
:
Object
,
steps
:
number
)
=>
{
AppleHealthKit
.
getStepCountForToday
(
null
,
(
err
:
Object
,
steps
:
number
)
=>
{
if
(
this
.
_handleHealthKitError
(
err
,
'
getStepCountForToday
'
)){
if
(
this
.
_handleHealthKitError
(
err
,
'
getStepCountForToday
'
)){
...
...
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