ORKTaskResult Class Reference
|Inherits from||ORKCollectionResult : ORKResult : NSObject|
A task result is typically generated by the framework as the task proceeds. When the task completes, it may be appropriate to serialize it for transmission to a server, or to immediately perform analysis on it.
results property of the
ORKCollectionResult object contains the step results
for the task.
Returns an intialized task result using the specified identifiers and directory.
- (instancetype)initWithTaskIdentifier:(NSString *)identifier taskRunUUID:(NSUUID *)taskRunUUID outputDirectory:(nullable NSURL *)outputDirectory
The identifier of the task that produced this result.
The UUID of the run of the task that produced this result.
The directory in which any files referenced by results can be found.
An initialized task result.
A unique identifier (UUID) for the presentation of the task that generated the result.
@property (nonatomic, copy, readonly) NSUUID *taskRunUUID
The unique identifier for a run of the task typically comes directly from the task view controller that was used to run the task.
The directory in which the generated data files were stored while the task was run.
@property (nonatomic, copy, readonly, nullable) NSURL *outputDirectory
The directory comes directly from the task view controller that was used to run this task. Generally, when archiving the results of a task, it is useful to archive all the files found in the output directory.
The file URL also prefixes the file URLs referenced in any child