Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 648 Bytes

getFlightsClimbed.md

File metadata and controls

36 lines (29 loc) · 648 Bytes

getFlightsClimbed

Get the total flights climbed (1 flight is ~10ft of elevation) on a specific day.

Example input options:

let options = {
    date: (new Date(2016,5,1)).toISOString(), // optional; default now
    includeManuallyAdded: false. // optional: default true
};

Call the method:

AppleHealthKit.getFlightsClimbed(
  (options: HealthInputOptions),
  (err: Object, results: HealthValue) => {
    if (err) {
      return
    }
    console.log(results)
  },
)

Example output:

{
  "value": 15,
  "startDate": "2016-07-08T12:00:00.000-0400",
  "endDate": "2016-07-08T12:00:00.000-0400"
}