SKSensorData
Objective-C
@interface SKSensorData : NSObject
Swift
class SKSensorData : NSObject
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.
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE; -
Returns an SKSensorData object, initialized with the given SKSensorType and SKSensorTimestamp.
Declaration
Objective-C
- (nonnull instancetype)initWithSensorType:(SKSensorType)sensorType timestamp: (nonnull SKSensorTimestamp *)timestamp;Swift
init(sensorType: SKSensorType, timestamp: SKSensorTimestamp)Parameters
sensorTypeThe type of the sensor that produced this data object.
timestampThe time were this data log was captured.
Return Value
A new SKSensorData object.
-
The type of the sensor that produced this data object.
Declaration
Objective-C
@property (nonatomic, readonly) SKSensorType sensorType;Swift
var sensorType: SKSensorType { get } -
The time were this data log was captured.
Declaration
Objective-C
@property (nonatomic, copy, readonly) SKSensorTimestamp *_Nonnull timestamp;Swift
@NSCopying var timestamp: SKSensorTimestamp { get } -
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.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull csvString;Swift
var csvString: String { get } -
Returns a dictionary that encapsulates all the sensor data elements.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSDictionary *_Nonnull dictionaryData;Swift
var dictionaryData: [AnyHashable : Any] { get }
View on GitHub