-
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. ImplementCarPlayManagerDelegate
in the containing application and assign an instance to thedelegate
property of yourCarPlayManager
instance.Note
It is very important you have a singleCarPlayManager
instance at any given time. This should be managed by yourUIApplicationDelegate
class if you choose to supply youraccessToken
to theCarPlayManager.eventsManager
viaNavigationEventsManager.init(dataSource:accessToken:mobileEventsManager)
, instead of the Info.plist.Declaration
Swift
public class CarPlayManager : NSObject
extension CarPlayManager: CPApplicationDelegate
extension CarPlayManager: CPInterfaceControllerDelegate
extension CarPlayManager: CPMapTemplateDelegate
extension CarPlayManager: CarPlayNavigationDelegate
-
CarPlay support requires iOS 12.0 or above and the CarPlay framework.
See more -
CarPlayManagerDelegate
is the main integration point for Mapbox CarPlay support.Implement this protocol and assign an instance to the
delegate
property 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
public protocol CarPlayManagerDelegate : AnyObject, UnimplementedLogging
-
CarPlayNavigationViewController
is a fully-featured turn-by-turn navigation UI for CarPlay.Seealso
NavigationViewControllerDeclaration
Swift
public class CarPlayNavigationViewController : UIViewController, NavigationMapViewDelegate
extension CarPlayNavigationViewController: StyleManagerDelegate
-
The
See moreCarPlayNavigationDelegate
protocol provides methods for reacting to significant events during turn-by-turn navigation withCarPlayNavigationViewController
.Declaration
Swift
public protocol CarPlayNavigationDelegate : AnyObject, UnimplementedLogging
-
The activity during which a
See moreCPTemplate
is displayed. This enumeration is used to distinguish between different templates during different phases of user interaction.Declaration
Swift
public enum CarPlayActivity : Int
-
A control indicating the direction that the vehicle is traveling towards.
See moreDeclaration
Swift
open class CarPlayCompassView : StylableView
-
See moreCarPlayMapViewController
is responsible for administering the Mapbox map, the interface styles and the map template buttons to display on CarPlay.Declaration
Swift
public class CarPlayMapViewController : UIViewController
extension CarPlayMapViewController: StyleManagerDelegate
-
CarPlaySearchController
is the main object responsible for managing the search feature on CarPlay.Messages declared in the
CPApplicationDelegate
protocol should be sent to this object in the containing application’s application delegate. ImplementCarPlaySearchControllerDelegate
in the containing application and assign an instance to thedelegate
property of yourCarPlaySearchController
instance.Note
It is very important you have a singleCarPlaySearchController
instance at any given time.Declaration
Swift
public class CarPlaySearchController : NSObject
extension CarPlaySearchController: CPSearchTemplateDelegate
extension CarPlaySearchController: CPListTemplateDelegate
-
CarPlay support requires iOS 12.0 or above and the CarPlay framework.
-
The CarPlayConnectionObserver protocol provides notification of a carplay unit connecting two the NavigationViewController.
See moreDeclaration
Swift
public protocol CarPlayConnectionObserver : AnyObject