Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 436 Bytes

getAppleExerciseTime().md

File metadata and controls

21 lines (19 loc) · 436 Bytes

A quantity sample type that measures the daily exercise time.

let d = new Date(2016, 1, 1);
let options = {
  startDate: new Date(2016, 10, 1).toISOString(), // required
  endDate: new Date().toISOString() // optional; default now
};
AppleHealthKit.getAppleExerciseTime(
  (options: Object),
  (err: Object, results: Object) => {
    if (err) {
      return;
    }
    console.log(results);
  }
);