Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 370 Bytes

saveBodyFatPercentage().md

File metadata and controls

17 lines (15 loc) · 370 Bytes

save a percentage body fat value to Healthkit

saveBodyFatPercentage accepts an options object containing a percent value:

let options = {
  value: 16.7 // 16.7%
}
AppleHealthKit.saveBodyFatPercentage(options: Object, (err: Object, results: Object) => {
  if (err) {
    return;
  }
  // body fat percentage successfully saved
});