Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 579 Bytes

saveWaistCircumference.md

File metadata and controls

33 lines (25 loc) · 579 Bytes

saveWaistCircumference

save a numeric waist circumference value to Healthkit. Waist circumference is available in iOS 11.0+.

saveWaistCircumference accepts an options object containing a numeric waist circumference value:

Example input options:

let options = {
  value: 39, // Inches
}

Call the method:

AppleHealthKit.saveWaistCircumference(
  (options: HealthValueOptions),
  (err: Object, results: number) => {
    if (err) {
      return
    }
    // waist circumference successfully saved
  },
)

Example output:

39