Type Method

isRelativeAltitudeAvailable

Returns a Boolean value indicating whether the current device supports generating data for relative altitude changes.

Declaration

+ (BOOL)isRelativeAltitudeAvailable;

Return Value

YES if the device supports relative altitude changes or NO if it does not.

Discussion

Use this method to determine if altitude updates are available before calling the startRelativeAltitudeUpdatesToQueue:withHandler: method.

See Also

Determining Altitude Availability

+ authorizationStatus

Returns a value indicating whether the app is authorized to retrieve altimeter data.

CMAuthorizationStatus

The authorization status for motion-related features.