ORKWalkingTaskStep Class Reference
| Inherits from | ORKActiveStep : ORKStep : NSObject |
|---|---|
| Declared in | ORKWalkingTaskStep.h ORKWalkingTaskStep.m |
Overview
The ORKWalkingTaskStep class implements a step that’s used in the predefined
walking task.
You don’t usually need to instantiate a walking step directly;
instead, it is instantiated as part of a predefined task. See the
predefined active tasks defined in ORKOrderedTask.
Other Methods
numberOfStepsPerLeg
The number of steps the user should be asked to take in each leg of the walking task step.
@property (nonatomic, assign) NSInteger numberOfStepsPerLegDiscussion
The step finishes when the number of steps have been completed,
or after 1.5 * numberOfStepsPerLeg seconds, whichever comes first.
Declared In
ORKWalkingTaskStep.h
Other Methods
– initWithIdentifier:
- (instancetype)initWithIdentifier:(NSString *)identifierDeclared In
ORKStep.h
– validateParameters
Checks the parameters of the step and throws exceptions on invalid parameters.
- (void)validateParametersDiscussion
This method is called when there is a need to validate the step’s parameters, which is typically
the case when adding a step to an ORKStepViewController object, and when presenting the
step view controller.
Subclasses should override this method to provide validation of their additional properties, and must call super.
Declared In
ORKStep.h