-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# deleteInsulinDeliverySample | ||
|
||
Delete a insulin delivery value from HealthKit. | ||
|
||
`deleteInsulinDeliverySample` accepts an record's UUID string and a callback: | ||
|
||
Example input object: | ||
|
||
```javascript | ||
let id = "A11E708A-63A4-42DF-B1E1-F5E2F88B6CA1" | ||
``` | ||
|
||
Example usage: | ||
|
||
```javascript | ||
AppleHealthKit.deleteInsulinDeliverySample( | ||
id, | ||
(err: string, result: HealthValue) => { | ||
if (err) { | ||
console.log(err) | ||
return | ||
} | ||
// sample successfully deleted | ||
console.log(result) | ||
}, | ||
) | ||
``` | ||
|
||
Example output (1 if deleted): | ||
|
||
```json | ||
1 | ||
``` |