ORKStepResult Class Reference

Inherits from ORKCollectionResult : ORKResult : NSObject
Declared in ORKResult.h

The ORKStepResult class represents a collection result produced by a step view controller to hold all child results produced by the step.

A step 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.

For example, an ORKQuestionStep object produces an ORKQuestionResult object that becomes a child of the ORKStepResult object. Similarly, an ORKActiveStep object may produce individual child result objects for each of the recorder configurations that was active during that step.

The results property of the ORKCollectionResult object contains the step results for the task.

– initWithStepIdentifier:results:

Returns an initialized step result using the specified identifier.

- (instancetype)initWithStepIdentifier:(NSString *)stepIdentifier results:(nullable NSArray<ORKResult*> *)results

Parameters

stepIdentifier

The identifier of the step.

results

The array of child results. The value of this parameter can be nil or empty if no results were collected.

Return Value

An initialized step result.

Declared In

ORKResult.h