SKLocationData
Objective-C
@interface SKLocationData : SKSensorData
Swift
class SKLocationData : SKSensorData
An instance of SKLocationData encapsulates measurements related to the Location sensor.
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE; -
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithSensorType:(SKSensorType)sensorType timestamp: (nonnull SKSensorTimestamp *)timestamp; -
Returns an SKLocationData object, initialized with an instance of CLLocation.
Declaration
Objective-C
- (nonnull instancetype)initWithLocation:(nonnull CLLocation *)location;Swift
init(location: CLLocation)Parameters
locationA CLLocation object that contains Location related data.
Return Value
An SKLocationData object.
-
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.
Declaration
Objective-C
@property (nonatomic, copy, readonly) CLLocation *_Nonnull location;Swift
@NSCopying var location: CLLocation { get } -
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.
Declaration
Objective-C
+ (nonnull NSString *)csvHeader;Swift
class func csvHeader() -> StringReturn Value
A string with a CSV header.
View on GitHub