• 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. Implement CarPlayManagerDelegate in the containing application and assign an instance to the delegate property of your CarPlayManager instance.

    Note

    It is very important you have a single CarPlayManager instance at any given time. This should be managed by your UIApplicationDelegate class if you choose to supply your accessToken to the CarPlayManager.eventsManager via NavigationEventsManager.init(dataSource:accessToken:mobileEventsManager), instead of the Info.plist.
    See more

    Declaration

    Swift

    @objc(MBCarPlayManager)
    public class CarPlayManager : NSObject
  • The activity during which a CPTemplate is displayed. This enumeration is used to distinguish between different templates during different phases of user interaction.

    See more

    Declaration

    Swift

    @objc(MBCarPlayActivity)
    public enum CarPlayActivity : Int
  • 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 of CarPlayManager.

    If no delegate is set, a default built-in MapboxNavigationService will be created and used when a trip begins.

    See more

    Declaration

    Swift

    @objc(MBCarPlayManagerDelegate)
    public protocol CarPlayManagerDelegate