8#import <Foundation/Foundation.h>
11#import "BEHealthKit.h"
16@interface BEHealthKit (read)
25- (void)readSamples:(HKSampleType *)sampleType fromDate:(NSDate *)startDate toDate:(NSDate *)endDate resultsHandler:(
void (^)(NSArray *results, NSError *error))resultsHandler;
33- (void)readCharacteristic:(HKCharacteristicType *)characteristic resultsHandler:(
void (^)(
id result, NSError *error))resultsHandler;
43- (void)readSamplesForWorkoutActivity:(HKWorkoutActivityType)activity fromDate:(NSDate *)startDate toDate:(NSDate *)endDate resultsHandler:(
void (^)(NSArray *results, NSError *error))resultsHandler;
54- (void)readStatisticsForQuantityType:(HKQuantityType *)quantityType predicate:(NSPredicate *)predicate options:(HKStatisticsOptions)options resultsHandler:(
void (^)(
id result, NSError *error))resultsHandler;
66- (void)readStatisticsCollectionForQuantityType:(HKQuantityType *)quantityType predicate:(NSPredicate *)predicate options:(HKStatisticsOptions)options anchorDate:(NSDate *)anchorDate intervalComponents:(NSDateComponents *)interval resultsHandler:(
void (^)(
id result, NSError *error))resultsHandler;
78- (void)readDocumentOfType:(HKDocumentType *)documentType predicate:(NSPredicate *)predicate limit:(NSUInteger)limit sortDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors includeDocumentData:(BOOL)includeDocumentData resultsHandler:(
void (^)(
id result, BOOL done, NSError *error))resultsHandler;
85- (void)beginBackgroundObserverQuery:(HKQuantityTypeIdentifier)identifierString guid:(NSString *)guid;
92void _ReadQuantity(
char *identifier,
char *startDateString,
char *endDateString,
bool combineSamples,
char *guid);
93void _ReadCategory(
char *identifier,
char *startDateString,
char *endDateString,
char *guid);
94void _ReadCharacteristic(
char *identifier,
char *guid);
95void _ReadCorrelation(
char *identifier,
char *startDateString,
char *endDateString,
bool combineSamples,
char *guid);
96void _ReadWorkout(
int activityID,
char *startDateString,
char *endDateString,
bool combineSamples,
char *guid);
97void _ReadStateOfMind(
char *startDateString,
char *endDateString,
char *guid);
99void _BeginObserverQuery(
char *identifier,
char *guid);
100void _StopObserverQuery(
char *identifier);
102void _ReadCombinedQuantityStatistics(
char *identifier,
char *startDateString,
char *endDateString,
char *guid);
103void _ReadStatistics(
char *identifier,
char *startDateString,
char *endDateString,
char *predicateString,
char *optionsString,
char *guid);
104void _ReadStatisticsCollection(
char *identifier,
char *predicateString,
char *optionsString,
char *startStamp,
char *endStamp,
char *intervalString,
char *guid);
106void _ReadLocationDataForWorkouts(
int activityID,
char *startDateString,
char *endDateString,
char *guid);
107void _ReadWorkoutRoutes(
int activityID,
char *startDateString,
char *endDateString,
bool combineSamples,
char *guid);
109void _ReadDocument(
char *predicateString,
int limit,
char *sort,
bool includeData,
char *guid);
111void _EnableBackgroundDelivery(
char *identifier,
int frequency);
115void _ReadPedometer(
char *startDateString,
char *endDateString);
116void _StartReadingPedometerFromDate(
char *startDateString);
117void _StopReadingPedometer();