Commit 8b0b6ca5 authored by Greg Wilson's avatar Greg Wilson Committed by GitHub

added getStepCountForToday method docs

parent ccf2c5e9
...@@ -12,6 +12,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data. ...@@ -12,6 +12,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data.
* [Methods](#methods) * [Methods](#methods)
* [isAvailable](#isavailable) * [isAvailable](#isavailable)
* [initHealthKit](#inithealthkit) * [initHealthKit](#inithealthkit)
* [getStepCountForToday](#getstepcountfortoday)
* [getLatestWeight](#getlatestweight) * [getLatestWeight](#getlatestweight)
* [saveWeight](#saveweight) * [saveWeight](#saveweight)
* [getLatestHeight](#getlatestheight) * [getLatestHeight](#getlatestheight)
...@@ -159,6 +160,20 @@ AppleHealthKit.initHealthKit(healthKitOptions: object, (err: string, res: object ...@@ -159,6 +160,20 @@ 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
AppleHealthKit.getStepCountForToday(null, (err: Object, steps: number) => {
if(this._handleHealthKitError(err, 'getStepCountForToday')){
return;
}
// use steps...
});
```
___
#### **`getLatestWeight`** #### **`getLatestWeight`**
get the most recent weight value get the most recent weight value
```javascript ```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