ORKCollector Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCopying NSSecureCoding |
Declared in | ORKCollector.h |
identifier
Identifier of this collector.
@property (copy, readonly) NSString *identifier
Declared In
ORKCollector.h
– serializedDataForObjects:
Serialization helper that produces serialized output. Subclasses should implement to provide a default serialization for upload.
- (NSData *)serializedDataForObjects:(NSArray *)objects
Return Value
Serialized data object.
Discussion
@params objects The objects to be serialized.
Declared In
ORKCollector.h
– serializableObjectsForObjects:
Serialization helper that produces objects suitable for serialization to JSON.
- (NSArray<NSDictionary*> *)serializableObjectsForObjects:(NSArray *)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