/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.tripresult/TripResultListMapContributor

TripResultListMapContributor

\ class TripResultListMapContributor(val viewModel: TripResultListViewModel) : TripKitMapContributor

Constructors

TripResultListMapContributor constructor(viewModel: TripResultListViewModel)

Properties

Name Summary
getTripLineLazy @Inject
lateinit var getTripLineLazy: GetTripLine
viewModel val viewModel: TripResultListViewModel

Functions

Name Summary
cleanup open override fun cleanup()
Called either from onStop() or when the map is switching to another contributor.
getInfoContents open override fun getInfoContents(marker: Marker): View?
Called when an info window is clicked.
initialize open override fun initialize()
Called from the TripKitMapFragment's onAttach().
safeToUseMap open override fun safeToUseMap(context: Context, map: GoogleMap)
Called when the map has been initialized and is safe to use.
setOriginDestinationLocations fun setOriginDestinationLocations(from: Location?, to: Location?)
setup open override fun setup()
Called from onStart().
fun setup(context: Context)