ORKAccelerometerRecorder Class Reference

Inherits from ORKRecorder : NSObject
Declared in ORKAccelerometerRecorder.h

The ORKAccelerometerRecorder class represents a recorder that requests and collects raw accelerometer data from CoreMotion at a fixed frequency.

The accelerometer recorder continues to record when the application enters the background by using the background task support provided by UIApplication.

  frequency

The frequency of accelerometer data collected from CoreMotion, in hertz (Hz).

@property (nonatomic, readonly) double frequency

Declared In

ORKAccelerometerRecorder.h

– initWithIdentifier:frequency:step:outputDirectory:

Returns an initialized accelerometer recorder using the specified frequency.

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

Parameters

identifier

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

frequency

The frequency of accelerometer data collected from CoreMotion, in hertz (Hz).

step

The step that requested this recorder.

outputDirectory

The directory in which the accelerometer data should be stored.

Return Value

An initialized accelerometer recorder.

Declared In

ORKAccelerometerRecorder.h