ORKAccelerometerRecorderConfiguration Class Reference
Inherits from | ORKRecorderConfiguration : NSObject |
---|---|
Declared in | ORKRecorder.h |
The ORKAccelerometerRecorderConfiguration
subclass configures
the collection of accelerometer data during an active step.
Accelerometer data is serialized to JSON and returned as an ORKFileResult
object.
For details on the format, see CMAccelerometerData+ORKJSONDictionary
.
To use a recorder, include its configuration in the recorderConfigurations
property
of an ORKActiveStep
object, include that step in a task, and present it with
a task view controller.
frequency
The frequency of accelerometer data collection in samples per second (Hz).
@property (nonatomic, readonly) double frequency
Declared In
ORKRecorder.h
– initWithIdentifier:frequency:
Returns an initialized accelerometer recorder configuration using the specified frequency.
- (instancetype)initWithIdentifier:(NSString *)identifier frequency:(double)frequency
Parameters
identifier |
The unique identifier of the recorder configuration. |
---|---|
frequency |
The frequency of accelerometer data collection in samples per second (Hz). |
Return Value
An initialized accelerometer recorder configuration.
Discussion
This method is the designated initializer.
Declared In
ORKRecorder.h
– initWithCoder:
Returns a new accelerometer recorder configuration initialized from data in the given unarchiver.
- (instancetype)initWithCoder:(NSCoder *)aDecoder
Parameters
aDecoder |
Coder from which to initialize the accelerometer recorder configuration. |
---|
Return Value
A new accelerometer recorder configuration.
Declared In
ORKRecorder.h