ORKPedometerRecorderConfiguration Class Reference
|Inherits from||ORKRecorderConfiguration : NSObject|
ORKPedometerRecorderConfiguration class represents a configuration
that records pedometer data during an active step.
Pedometer data consists of information about the processed steps provided by CoreMotion, obtained
CMPedometer object. The pedometer object essentially reports the total number of steps taken since the
start of recording, updating the value every time a significant number of steps have
Pedometer data is serialized to JSON and returned as an
For details on the format, see
To use a recorder, include its configuration in the
ORKActiveStep object, include that step in a task, and present it with
a task view controller.
Returns an initialized pedometer recorder configuration.
- (instancetype)initWithIdentifier:(NSString *)identifier
The unique identifier of the recorder configuration.
An initialized pedometer recorder configuration.
The recorder instantiates a
CMPedometer object, so no additional parameters besides
the identifier are required.
This method is the designated initializer.
Returns a new pedometer recorder configuration initialized from data in the given unarchiver.
- (instancetype)initWithCoder:(NSCoder *)aDecoder
Coder from which to initialize the pedometer recorder configuration.
A new pedometer recorder configuration.