SKLocationData Class Reference
Inherits from | SKSensorData : NSObject |
---|---|
Declared in | SKLocationData.h |
– 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
– initWithLocation:
Returns an SKLocationData object, initialized with an instance of CLLocation.
- (instancetype)initWithLocation:(CLLocation *)location
Parameters
location |
A CLLocation object that contains Location related data. |
---|
Return Value
An SKLocationData object.
Declared In
SKLocationData.h
location
A CLLocation object contains data related to the location of the device, as well as the accuracy of the measurements. More specifically it provides location coordinates, altitude and the logical floor of the building that the user is located. It also provides the instantaneous speed and the course of the device when the user is moving. For more information, please refer to Apple’s Core Location documentation.
@property (nonatomic, readonly, copy) CLLocation *location
Declared In
SKLocationData.h
+ csvHeader
A string with a CSV formatted header that describes the data of the Location 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
SKLocationData.h