Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 503 Bytes

saveBodyFatPercentage.md

File metadata and controls

33 lines (25 loc) · 503 Bytes

saveBodyFatPercentage

save a percentage body fat value to Healthkit

saveBodyFatPercentage accepts an options object containing a percent value:

Example input options:

let options = {
  value: 16.7, // 16.7%
}

Call the method:

AppleHealthKit.saveBodyFatPercentage(
  (options: HealthInputOptions),
  (err: Object, results: number) => {
    if (err) {
      return
    }
    // body fat percentage successfully saved
  },
)

Example output:

16.7