SKMagnetometerData Class Reference
Inherits from | SKSensorData : NSObject |
---|---|
Declared in | SKMagnetometerData.h |
Overview
An instance of SKMagnetometerData encapsulates measurements related to the Magnetometer 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
– initWithMagnetometerData:
Returns an SKMagnetometerData object, initialized with a CMMagnetometerData structure.
- (instancetype)initWithMagnetometerData:(CMMagnetometerData *)magnetometerData
Parameters
magnetometerData |
A structure that contains 3-axis magnetometer data. |
---|
Return Value
An SKMagnetometerData object.
Declared In
SKMagnetometerData.h
magneticField
A structure that contains 3-axis magnetometer data.
@property (nonatomic, readonly) CMMagneticField magneticField
Declared In
SKMagnetometerData.h
+ csvHeader
A string with a CSV formatted header that describes the data of the Magnetometer 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
SKMagnetometerData.h