Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 509 Bytes

saveWeight.md

File metadata and controls

34 lines (26 loc) · 509 Bytes

saveWeight

save a numeric weight value to Healthkit

saveWeight accepts an options object containing a numeric weight value:

Example input options:

let options = {
  value: 200,
}

Call the method:

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

Example output:

200