Package in2000.pedalio.ui.homescreen

Types

Link copied to clipboard
class FavoriteRecyclerAdapter(    searchWindow: SearchWindow,     favorites: List<FavoriteResult>,     chosenResult: MutableLiveData<SearchResult>) : RecyclerView.Adapter<FavoriteRecyclerAdapter.Favorite>

Recycler for the favorite list inside of the search window

Link copied to clipboard
data class FavoriteResult(    val score: Double,     val address: Address?,     val position: LatLng,     val distance: Double,     val info: String,     val poi: Poi?,     val iconSrc: Int = R.drawable.ic_home)

Data class to store a search result.

Link copied to clipboard
class NoNetworkFragment : Fragment

Fragment that is shown when there is no internet connection on startup.

Link copied to clipboard
class ResultAdapter(    searchWindow: SearchWindow,     searchList: List<SearchResult>,     chosenResult: MutableLiveData<SearchResult>) : RecyclerView.Adapter<ResultAdapter.ViewHolder>

Recycler for the search result list inside of the search window

Link copied to clipboard
class SearchWindow : Fragment

The search window fragment. This fragment is responsible for displaying the search window on click of the search button from the map.

Link copied to clipboard
class Title : Fragment

The main screen of the app.

Functions

Link copied to clipboard
fun FavoriteResult.toSearchResult(): SearchResult