From 8b0b6ca5e1464062ae647311d9e658aa9ebf8811 Mon Sep 17 00:00:00 2001 From: Greg Wilson Date: Mon, 27 Jun 2016 19:50:30 -0400 Subject: [PATCH] added getStepCountForToday method docs --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 2a2e0fa..0bdd5ca 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ A React Native bridge module for interacting with [Apple HealthKit] data. * [Methods](#methods) * [isAvailable](#isavailable) * [initHealthKit](#inithealthkit) + * [getStepCountForToday](#getstepcountfortoday) * [getLatestWeight](#getlatestweight) * [saveWeight](#saveweight) * [getLatestHeight](#getlatestheight) @@ -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`** get the most recent weight value ```javascript -- 2.26.2