Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 562 Bytes

saveLeanBodyMass.md

File metadata and controls

34 lines (26 loc) · 562 Bytes

saveLeanBodyMass

save a numeric lean body mass value to Healthkit

saveLeanBodyMass accepts an options object containing a numeric weight value:

Example input options:

let options = {
  value: 155.6, // lbs
}

Call the method:

AppleHealthKit.saveLeanBodyMass(
  (options: HealthInputOptions),
  (err: Object, results: number) => {
    if (err) {
      console.log('error saving lean body mass to Healthkit: ', err)
      return
    }
    // lean body mass successfully saved
  },
)

Example output:

155.6