Commit 1e964183 authored by Greg Wilson's avatar Greg Wilson Committed by GitHub

added getStepCountForDay method docs

parent 6d5dbe83
......@@ -13,6 +13,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data.
* [isAvailable](#isavailable)
* [initHealthKit](#inithealthkit)
* [getStepCountForToday](#getstepcountfortoday)
* [getStepCountForDay](#getstepcountforday)
* [getLatestWeight](#getlatestweight)
* [saveWeight](#saveweight)
* [getLatestHeight](#getlatestheight)
......@@ -169,7 +170,6 @@ AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object
___
#### **`getStepCountForToday`**
get the the aggregated total steps for the current day starting and ending at midnight
```javascript
......@@ -183,6 +183,23 @@ AppleHealthKit.getStepCountForToday(null, (err: Object, steps: number) => {
___
#### **`getStepCountForDay`**
get the the aggregated total steps for the day provided as `date` in options object.
```javascript
let d = new Date(2016,5,27);
let options = {
date: d.toISOString()
};
AppleHealthKit.getStepCountForDay(options, (err, steps) => {
if(this._handleHealthKitError(err, 'getStepCountForDay')){
return;
}
// steps is the step count for day 'd'
});
```
___
#### **`getLatestWeight`**
get the most recent weight value
```javascript
......
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