Other Type Aliases
The following type aliases are available globally.
-
Range of numeric values determining congestion level.
Congestion ranges work with
NumericCongestionLevel
values that can be requested by specifyingAttributeOptions.numericCongestionLevel
inDirectionOptions.attributes
when making Directions request.Declaration
Swift
public typealias CongestionRange = Range<NumericCongestionLevel>
-
A closure to be called when
RouteLeg
was changed.Declaration
Swift
public typealias AdvanceLegCompletionHandler = (_ result: Result<RouteProgress, Error>) -> Void
Parameters
result
Result, which in case of successfully changed leg contains the most recent
RouteProgress
and error, in case of failure. -
Dictionary, which contains any custom user info related data on CarPlay (for example it’s used by
CPTrip
, while filling it withCPRouteChoice
objects or for storing user information inCPListItem
).In case if
CPRouteChoice
,CPListItem
or otherCarPlayUserInfo
dependant object uses different type inuserInfo
it may lead to undefined behavior.Declaration
Swift
public typealias CarPlayUserInfo = [String : Any?]
-
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
NavigationServiceDelegate
protocol.Declaration
Swift
public typealias ContainerViewController = UIViewController & NavigationComponent
-
A type that represents a
UIView
that isCourseUpdatable
.Declaration
Swift
public typealias UserCourseView = UIView & CourseUpdatable