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. Implement
CarPlayManagerDelegatein the containing application and assign an instance to the
delegateproperty of your
NoteIt is very important you have a single
CarPlayManagerinstance at any given time. This should be managed by your
UIApplicationDelegateclass if you choose to supply your
NavigationEventsManager.init(dataSource:accessToken:mobileEventsManager), instead of the Info.plist.
@objc(MBCarPlayManager) public class CarPlayManager : NSObject
CarPlay support requires iOS 12.0 or above and the CarPlay framework.See more
CarPlayManagerDelegateis the main integration point for Mapbox CarPlay support.
Implement this protocol and assign an instance to the
delegateproperty of the shared instance of
If no delegate is set, a default built-in MapboxNavigationService will be created and used when a trip begins.See more
@objc(MBCarPlayManagerDelegate) public protocol CarPlayManagerDelegate