Instance Method

showTripPreviews(_:textConfiguration:)

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

Declaration

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

Parameters

tripPreviews

A list of trips to preview, limited to 12 trips.

textConfiguration

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

Discussion

Use this method to display upcoming trips or multiple trip options, such as for search results. Trip previews can appear over the active navigation session.

See Also

Displaying Trip Previews

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.