SKPedometerData Class Reference

Inherits from SKSensorData : NSObject
Declared in SKPedometerData.h

Overview

An instance of SKPedometerData encapsulates measurements related to the Pedometer sensor.

– initWithSensorType:withTimestamp:

Returns an SKSensorData object, initialized with the given SKSensorType and SKSensorTimestamp.

- (instancetype)initWithSensorType:(SKSensorType)sensorType withTimestamp:(SKSensorTimestamp *)timestamp

Parameters

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 *)pedometerData

Parameters

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 *pedometerData

Declared In

SKPedometerData.h

  startDate

Start date that the pedometer data are valid.

@property (nonatomic, readonly, copy) SKSensorTimestamp *startDate

Declared In

SKPedometerData.h

  endDate

End date that the pedometer data are valid.

@property (nonatomic, readonly, copy) SKSensorTimestamp *endDate

Declared 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 *)csvHeader

Return Value

A string with a CSV header.

Declared In

SKPedometerData.h