SKHeadingData
Objective-C
@interface SKHeadingData : SKSensorData
Swift
class SKHeadingData : SKSensorData
An instance of SKHeadingData encapsulates measurements related to the Heading 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 SKHeadingData object, initialized with an instance of CLHeading.
Declaration
Objective-C
- (nonnull instancetype)initWithHeading:(nonnull CLHeading *)heading;Swift
init(heading: CLHeading)Parameters
headingA CLHeading object that contains Heading related data.
Return Value
An SKHeadingData object.
-
A CLHeading object contains data about the device’s orientation relative to magnetic and true north.
Declaration
Objective-C
@property (nonatomic, copy, readonly) CLHeading *_Nonnull heading;Swift
@NSCopying var heading: CLHeading { get } -
A string with a CSV formatted header that describes the data of the Heading 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