You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ResearchKit/Common/ORKStepNavigationRule.h
+33-25Lines changed: 33 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,8 @@ ORK_CLASS_AVAILABLE
65
65
/*
66
66
The `init` and `new` methods are unavailable.
67
67
68
-
`ORKStepNavigationRule` classes should be initialized with custom designated initializers on each subclass.
68
+
`ORKStepNavigationRule` classes should be initialized with custom designated initializers on each
69
+
subclass.
69
70
*/
70
71
+ (instancetype)new NS_UNAVAILABLE;
71
72
- (instancetype)init NS_UNAVAILABLE;
@@ -87,18 +88,20 @@ ORK_CLASS_AVAILABLE
87
88
88
89
89
90
/**
90
-
The `ORKPredicateStepNavigationRule` can be used to match any answer combination in the results of the ongoing task (or in those of
91
-
previously completed tasks) and jump accordingly. You must provide one or more result predicates
92
-
(each predicate can match one or more step results within the task).
91
+
The `ORKPredicateStepNavigationRule` can be used to match any answer combination in the results of
92
+
the ongoing task (or in those of previously completed tasks) and jump accordingly. You must provide
93
+
one or more result predicates (each predicate can match one or more step results within the task).
93
94
94
95
Predicate step navigation rules contain an arbitrary number of result predicates with a
95
-
corresponding number of destination step identifiers, plus an optional default step identifier that is
96
-
used if none of the result predicates match. One result predicate can match one or more question
97
-
results; if matching several question results, that predicate can belong to the same or to different task
98
-
results). This rule allows you to define arbitrarily complex task navigation behaviors.
96
+
corresponding number of destination step identifiers, plus an optional default step identifier that
97
+
is used if none of the result predicates match. One result predicate can match one or more question
98
+
results; if matching several question results, that predicate can belong to the same or to
99
+
different task results). This rule allows you to define arbitrarily complex task navigation
100
+
behaviors.
99
101
100
102
The `ORKResultPredicate` class provides convenience class methods to build predicates for all the
101
-
`ORKQuestionResult` subtypes. Predicates must supply both the task result identifier and the question result identifier, in addition to one or more expected answers.
103
+
`ORKQuestionResult` subtypes. Predicates must supply both the task result identifier and the
104
+
question result identifier, in addition to one or more expected answers.
The `ORKDirectStepNavigationRule` class can be used to unconditionally jump to a destination step specified by its identifier or to finish the task early.
199
+
The `ORKDirectStepNavigationRule` class can be used to unconditionally jump to a destination step
200
+
specified by its identifier or to finish the task early.
0 commit comments