ORKSkipStepNavigationRule Class Reference

Inherits from NSObject
Conforms to NSCopying
NSSecureCoding
Declared in ORKStepNavigationRule.h

The ORKSkipStepNavigationRule class is the abstract base class for concrete skip step navigation rules.

Skip step navigation rules can be used within an ORKNavigableOrderedTask object. You assign skip step navigation rules to be triggered before a task step is shown. Each step can have one skip rule at most.

Subclasses must implement the identifierForDestinationStepWithTaskResult: method, which returns the identifier of the destination step for the rule.

Two concrete subclasses are included: ORKPredicateStepNavigationRule can match any answer combination in the results of the ongoing task and jump accordingly; ORKDirectStepNavigationRule unconditionally navigates to the step specified by the destination step identifier.

– stepShouldSkipWithTaskResult:

Returns whether the targeted step should skip.

- (BOOL)stepShouldSkipWithTaskResult:(ORKTaskResult *)taskResult

Parameters

taskResult

The up-to-date task result, used for calculating whether the task should skip.

Return Value

YES if the step should skip.

Discussion

Subclasses must implement this method to calculate if the targeted step should skip based on the passed task result.

Declared In

ORKStepNavigationRule.h