ORKKeyValueStepModifier Class Reference
Inherits from | ORKStepModifier : NSObject |
---|---|
Declared in | ORKStepNavigationRule.h |
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.
resultPredicate
The result predicate to match.
@property (nonatomic, strong, readonly) NSPredicate *resultPredicate
Declared 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*> *keyValueMap
Discussion
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*> *)keyValueMap
Parameters
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 *)aDecoder
Parameters
aDecoder |
The coder from which to initialize the step navigation rule. |
---|
Return Value
A new step modifier
Declared In
ORKStepNavigationRule.h