ORKPedometerRecorder Class Reference
Inherits from | ORKRecorder : NSObject |
---|---|
Declared in | ORKPedometerRecorder.h ORKPedometerRecorder.m |
Overview
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.
Other Methods
– 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
Other Methods
– stop
Stops data recording, which generally triggers the return of results.
- (void)stop
Discussion
If an error occurs when stopping the recorder, it is returned through the delegate.
Subclasses should call finishRecordingWithError:
rather than calling super.
Declared In
ORKRecorder.h
– isRecording
A Boolean value indicating whether the recorder is currently recording.
- (BOOL)isRecording
Return Value
YES
if the recorder is recording; otherwise, NO
.
Declared In
ORKRecorder.h