CategorySearchViewModel

class CategorySearchViewModel(applicationContext: Context, filterAndSelectSuggestions: FilterAndSelectMultipleSuggestionsUseCase, searchCategory: SearchCategoryUseCase, processActionWithConnectivityCheck: ProcessActionWithConnectivityCheckUseCase, searchClosed: InformSearchCloseClickedUseCase, resetSearchStateUseCase: ResetSearchStateUseCase, searchMetricsTracker: SearchMetricsTracker, searchAnalytics: SearchAnalytics, observeSearchInteractionResult: ObserveSearchInteractionResultUseCase) : ViewModel

Constructors

Link copied to clipboard
constructor(applicationContext: Context, filterAndSelectSuggestions: FilterAndSelectMultipleSuggestionsUseCase, searchCategory: SearchCategoryUseCase, processActionWithConnectivityCheck: ProcessActionWithConnectivityCheckUseCase, searchClosed: InformSearchCloseClickedUseCase, resetSearchStateUseCase: ResetSearchStateUseCase, searchMetricsTracker: SearchMetricsTracker, searchAnalytics: SearchAnalytics, observeSearchInteractionResult: ObserveSearchInteractionResultUseCase)

Functions

Link copied to clipboard
Link copied to clipboard
fun clickCategorySearchButton(category: String, @StringRes displayName: Int)
Link copied to clipboard
fun clickEndOfChargeSearchButton(endOfChargePoints: List<Point>)
Link copied to clipboard
fun clickSuggestedCategoryButton(category: Category, @StringRes displayName: Int)
fun clickSuggestedCategoryButton(category: String, displayName: String)
Link copied to clipboard