-
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
@available(iOS 12.0, *) public class CarPlayManager : NSObjectextension CarPlayManager: CPApplicationDelegateextension CarPlayManager: CPInterfaceControllerDelegateextension CarPlayManager: CPMapTemplateDelegateextension CarPlayManager: CarPlayNavigationDelegate -
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 moreDeclaration
Swift
@available(iOS 12.0, *) public protocol CarPlayManagerDelegate : AnyObject, UnimplementedLogging -
CarPlayNavigationViewControlleris a fully-featured turn-by-turn navigation UI for CarPlay.See moreSeealso
NavigationViewControllerDeclaration
Swift
@available(iOS 12.0, *) public class CarPlayNavigationViewController : UIViewController, NavigationMapViewDelegateextension CarPlayNavigationViewController: StyleManagerDelegate -
The
See moreCarPlayNavigationDelegateprotocol provides methods for reacting to significant events during turn-by-turn navigation withCarPlayNavigationViewController.Declaration
Swift
@available(iOS 12.0, *) public protocol CarPlayNavigationDelegate : AnyObject, UnimplementedLogging -
The activity during which a
See moreCPTemplateis displayed. This enumeration is used to distinguish between different templates during different phases of user interaction.Declaration
Swift
@available(iOS 12.0, *) public enum CarPlayActivity : Int -
A control indicating the direction that the vehicle is traveling towards.
See moreDeclaration
Swift
open class CarPlayCompassView : StylableView -
See moreCarPlayMapViewControlleris responsible for administering the Mapbox map, the interface styles and the map template buttons to display on CarPlay.Declaration
Swift
@available(iOS 12.0, *) public class CarPlayMapViewController : UIViewControllerextension CarPlayMapViewController: StyleManagerDelegate -
CarPlaySearchControlleris the main object responsible for managing the search feature on CarPlay.Messages declared in the
CPApplicationDelegateprotocol should be sent to this object in the containing application’s application delegate. ImplementCarPlaySearchControllerDelegatein the containing application and assign an instance to thedelegateproperty of yourCarPlaySearchControllerinstance.See moreNote
It is very important you have a singleCarPlaySearchControllerinstance at any given time.Declaration
Swift
@available(iOS 12.0, *) public class CarPlaySearchController : NSObjectextension CarPlaySearchController: CPSearchTemplateDelegateextension CarPlaySearchController: CPListTemplateDelegate -
The CarPlayConnectionObserver protocol provides notification of a carplay unit connecting two the NavigationViewController.
See moreDeclaration
Swift
public protocol CarPlayConnectionObserver : AnyObject
Install in Dash
CarPlay Reference