Type Definitions
The following type definitions are available globally.
-
Type used to represent the x or y axis value of a cartesian coordinate in meters under a reference frame
Declaration
Objective-C
typedef double SITCartesianMeters
Swift
typealias SITCartesianMeters = Double
-
The type of block callback that will get executed when a directions request is completed using the method requestDirections:completion:
Declaration
Objective-C
typedef void (^SITDirectionsCompletion)(SITRoute *_Nullable, NSError *_Nullable)
Swift
typealias SITDirectionsCompletion = (SITRoute?, Error?) -> Void
Parameters
route
the calculated route
error
any error that may occur during the route calculation
-
The type of block that will be called after the method - fetchCategoriesWithCompletion: is executed
Declaration
Objective-C
typedef void (^SITMapViewLoadCompletion)(id<SITMapViewController> _Nonnull, NSError *_Nullable)
Swift
typealias SITMapViewLoadCompletion = (SITMapViewController, Error?) -> Void
Parameters
mapViewController
Object to interact with the mapView. This object is returned only if the load is succesful
error
Error that causess the mapView to not load properly. If the mapView was successfully load this error will be nil