SKPedometerData Class Reference
| Inherits from | SKSensorData : NSObject |
|---|---|
| Declared in | SKPedometerData.h |
– initWithSensorType:withTimestamp:
Returns an SKSensorData object, initialized with the given SKSensorType and SKSensorTimestamp.
- (instancetype)initWithSensorType:(SKSensorType)sensorType withTimestamp:(SKSensorTimestamp *)timestampParameters
sensorType |
The type of the sensor that produced this data object. |
|---|---|
timestamp |
The time were this data log was captured. |
Return Value
A new SKSensorData object.
Declared In
SKSensorData.h
– initWithPedometerData:
Returns an SKPedometer object, initialized with an instance of CMPedometerData.
- (instancetype)initWithPedometerData:(CMPedometerData *)pedometerDataParameters
pedometerData |
A CMPedometerData object that contains data related to the Pedometer sensor. |
|---|
Return Value
An SKPedometer object.
Declared In
SKPedometerData.h
pedometerData
An instance of CMPedometerData object contains data about the distance travelled the user by foot.
@property (nonatomic, readonly, copy) CMPedometerData *pedometerDataDeclared In
SKPedometerData.h
startDate
Start date that the pedometer data are valid.
@property (nonatomic, readonly, copy) SKSensorTimestamp *startDateDeclared In
SKPedometerData.h
endDate
End date that the pedometer data are valid.
@property (nonatomic, readonly, copy) SKSensorTimestamp *endDateDeclared In
SKPedometerData.h
+ csvHeader
A string with a CSV formatted header that describes the data of the Pedometer sensor. This method is useful in combination with the csvString instance method of an SKSensorData object.
+ (NSString *)csvHeaderReturn Value
A string with a CSV header.
Declared In
SKPedometerData.h