ORKMotionActivityCollector Class Reference
Inherits from | ORKCollector : NSObject |
---|---|
Declared in | ORKCollector.h ORKCollector.m |
Overview
ORKHealthCollector collects CMMotionActivity.
It cannot be initiated directly.
Use addMotionActivityCollectorWithStartDate:
to add one to a ORKDataCollectionManager
.
Other Methods
– serializableObjectsForObjects:
Serialization helper that produces objects suitable for serialization to JSON.
- (NSArray *)serializableObjectsForObjects:(NSArray<CMMotionActivity*> *)objects
Return 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