SKAccelerometerData Class Reference

Inherits from SKSensorData : NSObject
Declared in SKAccelerometerData.h

Overview

An instance of SKAccelerometerData encapsulates measurements related to the Accelerometer 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

– initWithAccelerometerData:

Returns an SKAccelerometerData object, initialized with a CMAccelerometerData structure.

- (instancetype)initWithAccelerometerData:(CMAccelerometerData *)accelerometerData

Parameters

accelerometerData

A structure that contains 3-axis acceleration data.

Return Value

An SKAccelerometerData object.

Declared In

SKAccelerometerData.h

  acceleration

A structure that contains 3-axes acceleration values.

@property (nonatomic, readonly) CMAcceleration acceleration

Declared In

SKAccelerometerData.h

+ csvHeader

A string with a CSV formatted header that describes the data of the Accelerometer 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

SKAccelerometerData.h