SKHeadingData Class Reference

Inherits from SKSensorData : NSObject
Declared in SKHeadingData.h

Overview

An instance of SKHeadingData encapsulates measurements related to the Heading 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

– initWithHeading:

Returns an SKHeadingData object, initialized with an instance of CLHeading.

- (instancetype)initWithHeading:(CLHeading *)heading

Parameters

heading

A CLHeading object that contains Heading related data.

Return Value

An SKHeadingData object.

Declared In

SKHeadingData.h

  heading

A CLHeading object contains data about the device’s orientation relative to magnetic and true north.

@property (nonatomic, readonly, copy) CLHeading *heading

Declared In

SKHeadingData.h

+ csvHeader

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.

+ (NSString *)csvHeader

Return Value

A string with a CSV header.

Declared In

SKHeadingData.h