-
CarPlayManageris the main object responsible for orchestrating interactions with a Mapbox map on CarPlay.Messages declared in the
CPApplicationDelegateprotocol should be sent to this object in the containing application’s application delegate. ImplementCarPlayManagerDelegatein the containing application and assign an instance to thedelegateproperty of yourCarPlayManagerinstance.See moreNote
It is very important you have a singleCarPlayManagerinstance at any given time. This should be managed by yourUIApplicationDelegateclass if you choose to supply youraccessTokento theCarPlayManager.eventsManagerviaNavigationEventsManager.init(dataSource:accessToken:mobileEventsManager), instead of the Info.plist.Declaration
Swift
-
CarPlayManagerDelegateis the main integration point for Mapbox CarPlay support.Implement this protocol and assign an instance to the
delegateproperty of the shared instance ofCarPlayManager.If no delegate is set, a default built-in MapboxNavigationService will be created and used when a trip begins.
See more -
CarPlayNavigationViewControlleris a fully-featured turn-by-turn navigation UI for CarPlay.See moreSeealso
NavigationViewControllerDeclaration
Swift
-
The
See moreCarPlayNavigationDelegateprotocol provides methods for reacting to significant events during turn-by-turn navigation withCarPlayNavigationViewController. -
The activity during which a
See moreCPTemplateis displayed. This enumeration is used to distinguish between different templates during different phases of user interaction.
Install in Dash
CarPlay Reference