Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Latest commit

 

History

History
24 lines (21 loc) · 569 Bytes

getStepCount().md

File metadata and controls

24 lines (21 loc) · 569 Bytes

Get the aggregated total steps for a specific day (starting and ending at midnight).

An optional options object may be provided containing date field representing the selected day. If date is not set or an options object is not provided then the current day will be used.

let d = new Date(2016,1,1);
let options = {
    date: d.toISOString()
};
AppleHealthKit.getStepCount(options: Object, (err: Object, results: Object) => {
    if (err) {
        return;
    }
    console.log(results)
});
{
	value: 213,
}