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,
}