ORKActiveStep Class Reference
Inherits from | ORKStep : NSObject |
---|---|
Declared in | ORKActiveStep.h |
The ORKActiveStep
class is the base class for steps in active tasks, which
are steps that collect sensor data in a semi-controlled environment, as opposed
to the purely passive data collection enabled by HealthKit, or the more subjective data
collected when users fill in surveys.
In addition to the behaviors of ORKStep
, active steps have the concept of
life cycle, which includes a defined start and finish.
The ResearchKit framework provides built-in behaviors that allow active steps to play voice prompts, speak a count down, and have a defined duration.
To present an active step in your app, it’s likely that you will subclass ORKActiveStep
and
ORKActiveStepViewController
to present custom UI and custom
prompts. For example subclasses, see ORKSpatialSpanMemoryStep
or ORKFitnessStep
.
Active steps may also need ORKResult
subclasses to record their results
if these don’t come purely from recorders.
If you develop a new active step subclass, consider contributing your code to the ResearchKit project so that it’s available for others to use in their studies.
See also: ORKActiveStepViewController