ORKCollectionResult Class Reference

Inherits from ORKResult : NSObject
Declared in ORKCollectionResult.h

The ORKCollectionResult class represents a result that contains an array of child results.

ORKCollectionResult is the superclass of ORKTaskResult and ORKStepResult.

Note that object of this class are not instantiated directly by the ResearchKit framework.


An array of ORKResult objects that are the children of the result.

@property (nonatomic, copy, nullable) NSArray<ORKResult*> *results


For ORKTaskResult, the array contains ORKStepResult objects. For ORKStepResult the array contains concrete result objects such as ORKFileResult and ORKQuestionResult.

Declared In


– resultForIdentifier:

Looks up the child result containing an identifier that matches the specified identifier.

- (nullable ORKResult *)resultForIdentifier:(NSString *)identifier



The identifier of the step for which to search.

Return Value

The matching result, or nil if none was found.

Declared In



The first result.

@property (nonatomic, strong, readonly, nullable) ORKResult *firstResult


This is the first result, or nil if there are no results.

Declared In