HeadingMonitor
public class HeadingMonitor : BaseMonitor
A HeadingMonitor instance monitors the device for changes to its current
heading.
-
Encapsulates changes to the device’s current heading.
See moreDeclaration
Swift
public enum Event -
Encapsulates information associated with a heading monitor event.
See moreDeclaration
Swift
public enum Info -
Initializes a new
HeadingMonitor.Declaration
Swift
public init(queue: OperationQueue, handler: @escaping (Event) -> Void)Parameters
queueThe operation queue on which the handler executes.
handlerThe handler to call when the current heading of the device changes.
-
The minimum angular change (measured in degrees) required to generate new heading updates.
Declaration
Swift
public var filter: CLLocationDegrees { get set } -
The most recently reported heading.
The value of this property is nil if heading updates have never been initiated.
Declaration
Swift
public var heading: CLHeading? { get } -
A Boolean value indicating whether the device is able to generate heading updates.
Declaration
Swift
public var isAvailable: Bool { get } -
The device orientation to use when computing heading values.
Declaration
Swift
public var orientation: CLDeviceOrientation { get set } -
A Boolean value indicating whether the heading calibration view should be displayed.
Declaration
Swift
public var shouldDisplayCalibration: Bool -
Dismisses the heading calibration view from the screen immediately.
Declaration
Swift
public func dismissCalibrationDisplay() -
Declaration
Swift
override public func cleanupMonitor() -
Declaration
Swift
override public func configureMonitor()
View on GitHub
Install in Dash
HeadingMonitor Class Reference