CarPlayManager
CarPlayManager
is the main object responsible for orchestrating interactions with a Mapbox map on CarPlay.
Messages declared in the CPApplicationDelegate
protocol should be sent to this object in the containing application’s application delegate. Implement CarPlayManagerDelegate
in the containing application and assign an instance to the delegate
property of your CarPlayManager
instance.
Note
It is very important you have a singleCarPlayManager
instance at any given time. This should be managed by your UIApplicationDelegate
class if you choose to supply your accessToken
to the CarPlayManager.eventsManager
via NavigationEventsManager.init(dataSource:accessToken:mobileEventsManager)
, instead of the Info.plist.
-
-
-
Developers should assign their own object as a delegate implementing the CarPlayManagerDelegate protocol for customization.
-
If set to
true
, turn-by-turn directions will simulate the user traveling along the selected route when initiated from CarPlay. -
This property specifies a multiplier to be applied to the user’s speed in simulation mode.
-
-
-
-
A Boolean value indicating whether the phone is connected to CarPlay.
-
-