ORKCountdownStep Class Reference
Inherits from | ORKActiveStep : ORKStep : NSObject |
---|---|
Declared in | ORKCountdownStep.h ORKCountdownStep.m |
Overview
The ORKCountdownStep
class represents a step that displays a label and a
countdown for a time equal to its duration.
To use the countdown step, set the duration
property, incorporate it into a
task, and present the task with a task view controller.
The countdown step is used in most of ResearchKit’s predefined active tasks.
– initWithIdentifier:
- (instancetype)initWithIdentifier:(NSString *)identifier
Declared In
ORKStep.h
– validateParameters
Checks the parameters of the step and throws exceptions on invalid parameters.
- (void)validateParameters
Discussion
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