public interface CPMapTemplateDelegate
| Modifier and Type | Method and Description |
|---|---|
default void |
mapTemplateDidBeginPanGesture(CPMapTemplate mapTemplate)
Called when a pan gesture begins.
|
default void |
mapTemplateDidCancelNavigation(CPMapTemplate mapTemplate)
Called when navigation has been canceled by the system.
|
default void |
mapTemplateDidDismissNavigationAlertDismissalContext(CPMapTemplate mapTemplate,
CPNavigationAlert navigationAlert,
long dismissalContext)
Called when the map interface has completed dismissal of a navigation alert.
|
default void |
mapTemplateDidDismissPanningInterface(CPMapTemplate mapTemplate)
This will be called when the pan interface disappears on the map interface.
|
default void |
mapTemplateDidEndPanGestureWithVelocity(CPMapTemplate mapTemplate,
CGPoint velocity)
Called when a pan gesture ends.
|
default void |
mapTemplateDidShowNavigationAlert(CPMapTemplate mapTemplate,
CPNavigationAlert navigationAlert)
Called when the map interface has displayed a navigation alert.
|
default void |
mapTemplateDidShowPanningInterface(CPMapTemplate mapTemplate)
This will be called when the pan interface appears on the map interface.
|
default void |
mapTemplateDidUpdatePanGestureWithTranslationVelocity(CPMapTemplate mapTemplate,
CGPoint translation,
CGPoint velocity)
Called when a pan gesture changes.
|
default long |
mapTemplateDisplayStyleForManeuver(CPMapTemplate mapTemplate,
CPManeuver maneuver)
Changes the visual layout of the maneuver.
|
default void |
mapTemplatePanBeganWithDirection(CPMapTemplate mapTemplate,
long direction)
Called when a pan button is pressed/selected for an extended duration.
|
default void |
mapTemplatePanEndedWithDirection(CPMapTemplate mapTemplate,
long direction)
Called when a pan button is released after an extended duration.
|
default void |
mapTemplatePanWithDirection(CPMapTemplate mapTemplate,
long direction)
Called when a pan button is pressed/selected momentarily.
|
default void |
mapTemplateSelectedPreviewForTripUsingRouteChoice(CPMapTemplate mapTemplate,
CPTrip trip,
CPRouteChoice routeChoice)
Called when the user has selected a route choice to preview.
|
default boolean |
mapTemplateShouldShowNotificationForManeuver(CPMapTemplate mapTemplate,
CPManeuver maneuver)
Determines if the maneuver should be presented as a notification when the app is in the background.
|
default boolean |
mapTemplateShouldShowNotificationForNavigationAlert(CPMapTemplate mapTemplate,
CPNavigationAlert navigationAlert)
Determines if the navigation alert should be presented as a notification when the app is in the background.
|
default boolean |
mapTemplateShouldUpdateNotificationForManeuverWithTravelEstimates(CPMapTemplate mapTemplate,
CPManeuver maneuver,
CPTravelEstimates travelEstimates)
Determines if the updated distance remaining for the maneuver should be presented as a notification when the app is in the background.
|
default void |
mapTemplateStartedTripUsingRouteChoice(CPMapTemplate mapTemplate,
CPTrip trip,
CPRouteChoice routeChoice)
Called when the user has selected a route choice to navigate.
|
default void |
mapTemplateWillDismissNavigationAlertDismissalContext(CPMapTemplate mapTemplate,
CPNavigationAlert navigationAlert,
long dismissalContext)
Called when the map interface is preparing to dismiss a navigation alert.
|
default void |
mapTemplateWillDismissPanningInterface(CPMapTemplate mapTemplate)
This will be called when the pan interface will disappear on the map interface.
|
default void |
mapTemplateWillShowNavigationAlert(CPMapTemplate mapTemplate,
CPNavigationAlert navigationAlert)
Called when the map interface is about to display a navigation alert.
|
default void mapTemplateDidDismissNavigationAlertDismissalContext(CPMapTemplate mapTemplate, CPNavigationAlert navigationAlert, long dismissalContext)
default void mapTemplateDidEndPanGestureWithVelocity(CPMapTemplate mapTemplate, CGPoint velocity)
default void mapTemplateDidShowNavigationAlert(CPMapTemplate mapTemplate, CPNavigationAlert navigationAlert)
To take action in response to button presses on the navigation alert, see -[CPAlertAction handler].
default void mapTemplateDidUpdatePanGestureWithTranslationVelocity(CPMapTemplate mapTemplate, CGPoint translation, CGPoint velocity)
default long mapTemplateDisplayStyleForManeuver(CPMapTemplate mapTemplate, CPManeuver maneuver)
default void mapTemplatePanBeganWithDirection(CPMapTemplate mapTemplate, long direction)
default void mapTemplatePanEndedWithDirection(CPMapTemplate mapTemplate, long direction)
default void mapTemplatePanWithDirection(CPMapTemplate mapTemplate, long direction)
default void mapTemplateSelectedPreviewForTripUsingRouteChoice(CPMapTemplate mapTemplate, CPTrip trip, CPRouteChoice routeChoice)
default boolean mapTemplateShouldShowNotificationForManeuver(CPMapTemplate mapTemplate, CPManeuver maneuver)
default boolean mapTemplateShouldShowNotificationForNavigationAlert(CPMapTemplate mapTemplate, CPNavigationAlert navigationAlert)
default boolean mapTemplateShouldUpdateNotificationForManeuverWithTravelEstimates(CPMapTemplate mapTemplate, CPManeuver maneuver, CPTravelEstimates travelEstimates)
default void mapTemplateStartedTripUsingRouteChoice(CPMapTemplate mapTemplate, CPTrip trip, CPRouteChoice routeChoice)
default void mapTemplateWillDismissNavigationAlertDismissalContext(CPMapTemplate mapTemplate, CPNavigationAlert navigationAlert, long dismissalContext)
default void mapTemplateWillShowNavigationAlert(CPMapTemplate mapTemplate, CPNavigationAlert navigationAlert)
default void mapTemplateDidBeginPanGesture(CPMapTemplate mapTemplate)
default void mapTemplateDidCancelNavigation(CPMapTemplate mapTemplate)
[@note] In CarPlay systems that have native navigation, it is expected that only either the native navigation or the iPhone can be actively navigating. When navigation begins in the native system, all CarPlay supported navigation apps that are actively navigating will need to end their navigation session.
default void mapTemplateDidDismissPanningInterface(CPMapTemplate mapTemplate)
default void mapTemplateDidShowPanningInterface(CPMapTemplate mapTemplate)
default void mapTemplateWillDismissPanningInterface(CPMapTemplate mapTemplate)