ORKKeyValueStepModifier Class Reference
| Inherits from | ORKStepModifier : NSObject |
|---|---|
| Declared in | ORKStepNavigationRule.h ORKStepNavigationRule.m |
Overview
The ORKKeyValueStepModifier class is an class for an object that can be used to modify a step
if a given navigation rule is matched.
Step modifiers can be used within an ORKNavigableOrderedTask object. You assign step modifiers
to be triggered after a task step is shown. Each step can have one step modifier at most.
Other Methods
resultPredicate
The result predicate to match.
@property (nonatomic, strong, readonly) NSPredicate *resultPredicateDeclared In
ORKStepNavigationRule.h
keyValueMap
A key-value mapping to apply to the modified step if the result predicate matches. The keys in this are assumed to map using key-value coding.
@property (nonatomic, strong, readonly) NSDictionary<NSString*NSObject*> *keyValueMapDiscussion
See https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/KeyValueCoding/
Declared In
ORKStepNavigationRule.h
– initWithResultPredicate:keyValueMap:
Returns a new step modifier.
- (instancetype)initWithResultPredicate:(NSPredicate *)resultPredicate keyValueMap:(NSDictionary<NSString*,NSObject*> *)keyValueMapParameters
resultPredicate |
The result predicate to use to determine if the step should be modified |
|---|---|
keyValueMap |
The mapping dictionary for this object |
stepIdentifier |
The step identifier for the step to modify |
Return Value
A new step modifier
Declared In
ORKStepNavigationRule.h
– initWithCoder:
Returns a new step modifier.
- (instancetype)initWithCoder:(NSCoder *)aDecoderParameters
aDecoder |
The coder from which to initialize the step navigation rule. |
|---|
Return Value
A new step modifier
Declared In
ORKStepNavigationRule.h
Other Methods
– modifyStep:withTaskResult:
Modify the steps for a task.
- (void)modifyStep:(ORKStep *)step withTaskResult:(ORKTaskResult *)taskResultParameters
step |
The step that is associated with this modifier |
|---|---|
taskResult |
The current task result |
Declared In
ORKStepNavigationRule.h