SKSensorData Class Reference

Inherits from NSObject
Declared in SKSensorData.h

Overview

This is the base class for all Sensor Data objects. A subclass of SKSensorData object is delivered through the SKSensorDataHandler, combined with the related SKSensorType.

– 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

  sensorType

The type of the sensor that produced this data object.

@property (nonatomic, readonly) SKSensorType sensorType

Declared In

SKSensorData.h

  timestamp

The time were this data log was captured.

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

Declared In

SKSensorData.h

  csvString

Returns a string with all the sensor data elements into CSV format. For a description of the element types, sensor class method csvHeader can be used.

@property (nonatomic, readonly, copy) NSString *csvString

Declared In

SKSensorData.h

  dictionaryData

Returns a dictionary that encapsulates all the sensor data elements.

@property (nonatomic, readonly, copy) NSDictionary *dictionaryData

Declared In

SKSensorData.h