-
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
@objc(MBCarPlayManager) public class CarPlayManager : NSObject
-
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
@objc(MBCarPlayActivity) public enum CarPlayActivity : Int
-
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
See moredelegate
property of the shared instance ofCarPlayManager
.Declaration
Swift
@objc(MBCarPlayManagerDelegate) public protocol CarPlayManagerDelegate
-
CarPlayNavigationViewController
is a fully-featured turn-by-turn navigation UI for CarPlay.Seealso
NavigationViewControllerDeclaration
Swift
@objc(MBCarPlayNavigationViewController) public class CarPlayNavigationViewController : UIViewController
-
The
See moreCarPlayNavigationDelegate
protocol provides methods for reacting to significant events during turn-by-turn navigation withCarPlayNavigationViewController
.Declaration
Swift
@objc(MBNavigationCarPlayDelegate) public protocol CarPlayNavigationDelegate