/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.search/LocationSearchIconProvider
LocationSearchIconProvider
interface LocationSearchIconProvider
When search results are displayed by the LocationSearchFragment, an icon is shown next to each kind of result. If you would like to provide icons in your own style, you can provide the LocationSearchFragment with an icon provider.
Inheritors
LegacyLocationSearchIconProvider |
TKUILocationSearchIconProvider |
Types
Name | Summary |
---|---|
SearchResultType | enum SearchResultType : Enum<LocationSearchIconProvider.SearchResultType> |
Functions
Name | Summary |
---|---|
iconForSearchResult | @DrawableRes abstract fun iconForSearchResult(resultType: LocationSearchIconProvider.SearchResultType, stopType: StopType? = null): Int Implementations of this function should return the resource ID of a drawable to be used for a specific StopType. |