Other Type Aliases
The following type aliases are available globally.
-
A closure to call when the
NavigationDirectionsrouter has been configured completely.Declaration
Swift
public typealias NavigationDirectionsCompletionHandler = (_ numberOfTiles: UInt64) -> Void -
A closure to call when an unpacking operation has made some progress.
Declaration
Swift
public typealias UnpackProgressHandler = (_ totalBytes: UInt64, _ remainingBytes: UInt64) -> ()Parameters
totalBytesThe total size of tile pack in bytes.
remainingBytesThe remaining number of bytes left to download.
-
A closure to call once an unpacking operation has completed.
Declaration
Swift
public typealias UnpackCompletionHandler = (_ numberOfTiles: UInt64, _ error: Error?) -> ()Parameters
numberOfTilesThe number of tiles that were unpacked.
errorPotential error that occured when trying to unpack.
-
A closure (block) to be called when a directions request is complete.
If the request was canceled or there was an error obtaining the routes, this argument may be
nil.If the request was canceled or there was an error obtaining the routes, this argument is
nil. This is not to be confused with the situation in which no results were found, in which case the array is present but empty.Declaration
Swift
public typealias OfflineRouteCompletionHandler = (_ session: Directions.Session, _ result: Result<RouteResponse, OfflineRoutingError>) -> VoidParameters
waypointsAn array of
Waypointobjects. Each waypoint object corresponds to aWaypointobject in the originalRouteOptionsobject. The locations and names of these waypoints are the result of conflating the original waypoints to known roads. The waypoints may include additional information that was not specified in the original waypoints.routesAn array of
Routeobjects. The preferred route is first; any alternative routes come next if theRouteOptionsobject’sincludesAlternativeRoutesproperty was set totrue. The preferred route depends on the route options object’sprofileIdentifierproperty.errorThe error that occurred, or
nilif the placemarks were obtained successfully. -
A container view controller is a view controller that behaves as a navigation component; that is, it responds as the user progresses along a route according to the
NavigationServiceDelegateprotocol.Declaration
Swift
public typealias ContainerViewController = UIViewController & NavigationComponent
Install in Dash
Other Type Aliases Reference