ORKPedometerRecorder Class Reference

Inherits from ORKRecorder : NSObject
Declared in ORKPedometerRecorder.h

A recorder that requests and collects device motion data from CoreMotion at a fixed frequency.

The accelerometer recorder continues to record if the application enters the background using UIApplication’s background task support.

– initWithIdentifier:step:outputDirectory:

Returns an initialized pedometer recorder.

- (instancetype)initWithIdentifier:(NSString *)identifier step:(nullable ORKStep *)step outputDirectory:(nullable NSURL *)outputDirectory

Parameters

identifier

The unique identifier of the recorder (assigned by the recorder configuration).

step

The step that requested this recorder.

outputDirectory

The directory in which the pedometer data should be stored.

Return Value

An initialized pedometer recorder.

Declared In

ORKPedometerRecorder.h