Instance Method

showRouteChoicesPreview(for:textConfiguration:)

Displays the route choices for a single trip.

Declaration

func showRouteChoicesPreview(for tripPreview: CPTrip, textConfiguration: CPTripPreviewTextConfiguration?)

Parameters

tripPreview

The trip to preview.

textConfiguration

A text configuration object containing the titles to display on trip preview buttons.

Discussion

The trip preview can appear over an active navigation session.

See Also

Displaying Trip Previews

func showTripPreviews([CPTrip], textConfiguration: CPTripPreviewTextConfiguration?)

Displays the preview for one or more trips and allows route selection.

func hideTripPreviews()

Hides the display of trip previews.

class CPTripPreviewTextConfiguration

A configuration object that lets you change the button titles displayed on a trip preview.