Commit 5533d128 authored by Evstropov Evgenii's avatar Evstropov Evgenii Committed by GitHub

Merge pull request #91 from iradkot/source-info

feat: add source id and name to fetchQuantitySamplesOfType func
parents 5b51ff08 4710db87
...@@ -86,6 +86,8 @@ ...@@ -86,6 +86,8 @@
NSDictionary *elem = @{ NSDictionary *elem = @{
@"value" : @(value), @"value" : @(value),
@"sourceName" : [[[sample sourceRevision] source] name],
@"sourceId" : [[[sample sourceRevision] source] bundleIdentifier],
@"startDate" : startDateString, @"startDate" : startDateString,
@"endDate" : endDateString, @"endDate" : endDateString,
}; };
......
...@@ -10,7 +10,7 @@ let options = { ...@@ -10,7 +10,7 @@ let options = {
``` ```
Available units are: `'mmolPerL'`, `'mgPerdL'`. Available units are: `'mmolPerL'`, `'mgPerdL'`.
The callback function will be called with a `samples` array containing objects with *value*, *startDate*, and *endDate* fields The callback function will be called with a `samples` array containing objects with *value*, *sourceId*, *sourceName*, *startDate*, and *endDate* fields
```javascript ```javascript
AppleHealthKit.getBloodGlucoseSamples(options, (err: Object, results: Array<Object>) => { AppleHealthKit.getBloodGlucoseSamples(options, (err: Object, results: Array<Object>) => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment