Contents

startAbsoluteAltitudeUpdates(to:withHandler:)

Starts the delivery of absolute altitude data to the specified handler.

Declaration

func startAbsoluteAltitudeUpdates(to queue: OperationQueue, withHandler handler: @escaping  CMAbsoluteAltitudeHandler)

Parameters

  • queue:

    The operation queue on which to execute your handler block. The altimeter object stores a strong reference to this object. This parameter must not be nil.

  • handler:

    The handler block to execute when new altitude data is available. This parameter must not be nil. For information about the format of this block, see Cmabsolutealtitudehandler.

Discussion

Call isAbsoluteAltitudeAvailable() to verify that the current device supports absolute altitude updates before calling the startAbsoluteAltitudeUpdates(to:withHandler:) method.

See Also

Starting and Stopping Altitude Updates