ORKDeviceMotionRecorderConfiguration Class Reference
|Inherits from||ORKRecorderConfiguration : NSObject|
ORKDeviceMotionRecorderConfiguration class represents a configuration
that records device motion data during an active step.
Device motion data is the processed motion data provided by CoreMotion and obtained
CMMotionManager object. The data can include measures of the overall device orientation
obtained from combining accelerometer, magnetometer, and gyroscope data.
Device motion 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.
The frequency of motion data collection in samples per second (Hz).
@property (nonatomic, readonly) double frequency
Returns an initialized device motion recorder configuration using the specified frequency.
- (instancetype)initWithIdentifier:(NSString *)identifier frequency:(double)frequency
The unique identifier of the recorder configuration.
Motion data collection frequency in samples per second (Hz).
An initialized device motion recorder configuration.
This method is the designated initializer.
Returns a new device motion recorder configuration initialized from data in the given unarchiver.
- (instancetype)initWithCoder:(NSCoder *)aDecoder
Coder from which to initialize the device motion recorder configuration.
A new device motion recorder configuration.