A block for receiving altitude data.
- iOS 8.0+
- UIKit for Mac 13.0+Beta
- watchOS 2.0+
- Core Motion
You pass a block of this type to the altimeter object’s
start method when starting the delivery of altitude data. This block has no return value and takes the following parameters:
The relative change in altitude data. If there was an error generating the data, this parameter is
An error object if an error occurred or
nilif the data was delivered successfully. When an error occurs, you can use the information in the provided object to try and recover or to alert the user.