SKPedometerData
Objective-C
@interface SKPedometerData : SKSensorData
Swift
class SKPedometerData : SKSensorData
An instance of SKPedometerData encapsulates measurements related to the Pedometer sensor.
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE; -
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithSensorType:(SKSensorType)sensorType timestamp: (nonnull SKSensorTimestamp *)timestamp; -
Returns an SKPedometer object, initialized with an instance of CMPedometerData.
Declaration
Objective-C
- (nonnull instancetype)initWithPedometerData: (nonnull CMPedometerData *)pedometerData;Swift
init(pedometerData: CMPedometerData)Parameters
pedometerDataA CMPedometerData object that contains data related to the Pedometer sensor.
Return Value
An SKPedometer object.
-
An instance of CMPedometerData object contains data about the distance travelled the user by foot.
Declaration
Objective-C
@property (nonatomic, copy, readonly) CMPedometerData *_Nonnull pedometerData;Swift
@NSCopying var pedometerData: CMPedometerData { get } -
Start date that the pedometer data are valid.
Declaration
Objective-C
@property (nonatomic, copy, readonly) SKSensorTimestamp *_Nonnull startDate;Swift
@NSCopying var startDate: SKSensorTimestamp { get } -
End date that the pedometer data are valid.
Declaration
Objective-C
@property (nonatomic, copy, readonly) SKSensorTimestamp *_Nonnull endDate;Swift
@NSCopying var endDate: SKSensorTimestamp { get } -
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.
Declaration
Objective-C
+ (nonnull NSString *)csvHeader;Swift
class func csvHeader() -> StringReturn Value
A string with a CSV header.
View on GitHub