/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.search

Package-level declarations

Types

Name Summary
CityProviderSuggestionViewModel class CityProviderSuggestionViewModel(context: Context, suggestion: SearchSuggestion, val term: String? = null) : FixedSuggestionViewModel
DefaultFixedSuggestionsProvider class DefaultFixedSuggestionsProvider(val showChooseOnMap: Boolean, showCurrentLocation: Boolean) : FixedSuggestionsProvider
DefaultFixedSuggestionType enum DefaultFixedSuggestionType : Enum<DefaultFixedSuggestionType>
DefaultSearchSuggestion class DefaultSearchSuggestion(val id: Any, val title: String, val subtitle: String?, @ColorResval titleColor: Int, @ColorResval subtitleColor: Int, val icon: Drawable, val location: Location? = null) : SearchSuggestion
FetchFoursquareLocations interface FetchFoursquareLocations : FetchLocations
FetchGoogleLocations interface FetchGoogleLocations : FetchLocations
FetchLocalLocations interface FetchLocalLocations : FetchLocations
FetchLocations interface FetchLocations
FetchLocationsParameters @Value.Immutable
abstract class FetchLocationsParameters
FetchSuggestions interface FetchSuggestions
FetchTripGoLocations interface FetchTripGoLocations : FetchLocations
FixedSuggestions enum FixedSuggestions : Enum<FixedSuggestions>
FixedSuggestionsProvider interface FixedSuggestionsProvider
FixedSuggestionViewModel open class FixedSuggestionViewModel(context: Context, suggestion: SearchSuggestion, val term: String? = null) : SuggestionViewModel
GoogleAndTripGoSuggestionViewModel class GoogleAndTripGoSuggestionViewModel(context: Context, val picasso: Picasso, val place: Place, val canOpenTimetable: Boolean, val iconProvider: LocationSearchIconProvider, val query: String?) : SuggestionViewModel
LegacyLocationSearchIconProvider class LegacyLocationSearchIconProvider : LocationSearchIconProvider
LocationSearchErrorViewModel class LocationSearchErrorViewModel@Injectconstructor(val context: Context)
LocationSearchFragment class LocationSearchFragment : BaseTripKitFragment
This is a self-contained location search component which merges search results from both SkedGo's search results as well as Google Places.
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.
LocationSearchProvider interface LocationSearchProvider
LocationSearchViewModel class LocationSearchViewModel@Injectconstructor(context: Context, regionService: RegionService, placeSearchRepository: PlaceSearchRepository, fetchSuggestions: FetchSuggestions, errorLogger: ErrorLogger, picasso: Picasso, schedulerFactory: SchedulerFactory, locationHistoryRepository: LocationHistoryRepository, val errorViewModel: LocationSearchErrorViewModel, favoritesRepository: FavoritesRepository) : RxViewModel
LocationSearchViewModelFactory class LocationSearchViewModelFactory@Injectconstructor(locationSearchViewModelProvider: Provider<LocationSearchViewModel>) : ViewModelProvider.Factory
SearchErrorType sealed class SearchErrorType
SearchProviderSuggestionViewModel class SearchProviderSuggestionViewModel(context: Context, suggestion: SearchSuggestion, val term: String? = null) : FixedSuggestionViewModel
SearchSuggestion interface SearchSuggestion
SearchSuggestionChoice sealed class SearchSuggestionChoice
SuggestionViewModel sealed class SuggestionViewModel
VisibilityState enum VisibilityState : Enum<VisibilityState>

Properties

Name Summary
ARG_CAN_OPEN_TIMETABLE const val ARG_CAN_OPEN_TIMETABLE: String
ARG_INITIAL_QUERY const val ARG_INITIAL_QUERY: String
ARG_NEAR_LAT const val ARG_NEAR_LAT: String
ARG_NEAR_LON const val ARG_NEAR_LON: String
ARG_NORTHEAST_LAT const val ARG_NORTHEAST_LAT: String
ARG_NORTHEAST_LON const val ARG_NORTHEAST_LON: String
ARG_QUERY_HINT const val ARG_QUERY_HINT: String
ARG_SHOW_BACK_BUTTON const val ARG_SHOW_BACK_BUTTON: String
ARG_SHOW_CLOSE_BUTTON const val ARG_SHOW_CLOSE_BUTTON: String
ARG_SHOW_SEARCH_FIELD const val ARG_SHOW_SEARCH_FIELD: String
ARG_SOUTHWEST_LAT const val ARG_SOUTHWEST_LAT: String
ARG_SOUTHWEST_LON const val ARG_SOUTHWEST_LON: String
ARG_WITH_CURRENT_LOCATION const val ARG_WITH_CURRENT_LOCATION: String
ARG_WITH_DROP_PIN const val ARG_WITH_DROP_PIN: String
KEY_BOUNDS const val KEY_BOUNDS: String
KEY_CENTER const val KEY_CENTER: String

Functions

Name Summary
setMatcher fun setMatcher(textView: TextView, matcher: String?)
fun setMatcher(textView: TextView, matcher: List<String>?, matchByWord: Boolean = true)