Type Method

headingAvailable()

Returns a Boolean value indicating whether the location manager is able to generate heading-related events.

Declaration

class func headingAvailable() -> Bool

Return Value

true if heading data is available; false if it is not.

Discussion

Heading data may not be available on all iOS-based devices. You should check the value returned by this method before asking the location manager to deliver heading-related events.