ORKHealthCorrelationCollector Class Reference
| Inherits from | ORKCollector : NSObject |
|---|---|
| Declared in | ORKCollector.h ORKCollector.m |
Overview
ORKHealthCollector collects HKCorrelation.
It cannot be initiated directly.
Use addHealthCorrelationCollectorWithCorrelationType:to add one to a ORKDataCollectionManager.
Other Methods
– serializableObjectsForObjects:
Serialization helper that produces objects suitable for serialization to JSON.
- (NSArray *)serializableObjectsForObjects:(NSArray<HKCorrelation*> *)objectsReturn Value
Serializable dictionary objects.
Discussion
Subclasses should implement to provide a default JSON serialization for upload.
Called by serializedDataForObjects:.
@params objects The objects to be serialized.
Declared In
ORKCollector.h
Other Methods
correlationType
HealthKit correlation type.
@property (copy, readonly) HKCorrelationType *correlationTypeDeclared In
ORKCollector.h
sampleTypes
Array of HKSampleType expected in the correlation.
@property (copy, readonly) NSArray<HKSampleType*> *sampleTypesDeclared In
ORKCollector.h
units
Array of HKUnit to use when serializing the samples collected (should be same size as sampleTypes).
@property (copy, readonly) NSArray<HKUnit*> *unitsDeclared In
ORKCollector.h
startDate
Samples should be collected starting at this date.
@property (copy, readonly) NSDate *startDateDeclared In
ORKCollector.h
lastAnchor
Last anchor already seen.
@property (copy, readonly) HKQueryAnchor *lastAnchorDeclared In
ORKCollector.h