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.

  results

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

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

Discussion

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

Declared In

ORKCollectionResult.h

– resultForIdentifier:

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

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

Parameters

identifier

The identifier of the step for which to search.

Return Value

The matching result, or nil if none was found.

Declared In

ORKCollectionResult.h

  firstResult

The first result.

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

Discussion

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

Declared In

ORKCollectionResult.h