Contents

CMAbsoluteAltitudeHandler

A block for receiving absolute altitude data.

Declaration

typealias CMAbsoluteAltitudeHandler = (CMAbsoluteAltitudeData?, (any Error)?) -> Void

Parameters

  • altitudeData:

    The current altitude for the device. If there’s an error generating the data, this parameter is nil.

  • error:

    The error object. Returns nil if the altimeter successfully delivers the altitude data. When an error occurs, you can use the information in the provided object to recover the data or to alert the user.

Discussion

You pass a block of this type to the altimeter object’s startAbsoluteAltitudeUpdates(to:withHandler:) method when starting the delivery of altitude data.

See Also

Starting and Stopping Altitude Updates