CarPlayManagerDelegate
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
.
-
Offers the delegate an opportunity to provide a customized list of leading bar buttons.
These buttons’ tap handlers encapsulate the action to be taken, so it is up to the developer to ensure the hierarchy of templates is adequately navigable. If this method is not implemented, or if nil is returned, an implementation of CPSearchTemplate will be provided which uses the Mapbox Geocoder.
-
Offers the delegate an opportunity to provide a customized list of trailing bar buttons.
These buttons’ tap handlers encapsulate the action to be taken, so it is up to the developer to ensure the hierarchy of templates is adequately navigable.
-
Offers the delegate an opportunity to provide a customized list of buttons displayed on the map.
These buttons handle the gestures on the map view, so it is up to the developer to ensure the map template is interactive. If this method is not implemented, or if nil is returned, a default set of zoom and pan buttons will be provided.
-
Offers the delegate an opportunity to provide an alternate navigation service, otherwise a default built-in MapboxNavigationService will be created and used.
-
Offers the delegate an opportunity to react to updates in the search text.
Postcondition
You must call
completionHandler
within this method. -
Offers the delegate an opportunity to react to selection of a search result.
Postcondition
You must call
completionHandler
within this method. -
Offers the delegate the opportunity to react to selection of a trip. Certain trips may have alternate route(s).
-
Called when navigation begins so that the containing app can update accordingly.
-
Called when navigation ends so that the containing app can update accordingly.
-
Called when the carplay manager will disable the idle timer.
Implementing this method will allow developers to change whether idle timer is disabled when carplay is connected and the vice-versa when disconnected.