PlacesPreviewViewModel

class PlacesPreviewViewModel(appStore: AppStore, searchAnalytics: SearchAnalytics, cancelPlacesPreview: CancelPlacesPreviewUseCase, observePlacesPreviewState: ObservePlacesStateUseCase, previousSearchStateUseCase: PreviousSearchStateUseCase, overviewSearchResultWithCurrentRoute: OverviewSearchResultWithCurrentRoute, onNewItemSelectedListener: OnNewItemSelectedListener, placesFocusHelper: PlacesPreviewFocusNavigationHelper, val mapMoving: ObserveMapMovingUseCase) : ViewModel, FocusNavigationHelper<FocusedElement>

Constructors

Link copied to clipboard
constructor(appStore: AppStore, searchAnalytics: SearchAnalytics, cancelPlacesPreview: CancelPlacesPreviewUseCase, observePlacesPreviewState: ObservePlacesStateUseCase, previousSearchStateUseCase: PreviousSearchStateUseCase, overviewSearchResultWithCurrentRoute: OverviewSearchResultWithCurrentRoute, onNewItemSelectedListener: OnNewItemSelectedListener, placesFocusHelper: PlacesPreviewFocusNavigationHelper, mapMoving: ObserveMapMovingUseCase)

Properties

Link copied to clipboard
open override val action: Flow<FocusedElement>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val focusedElement: StateFlow<FocusedElement?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val selectedPosition: Flow<Int?>

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onFocused()
Link copied to clipboard
open override fun onFocusLost()
Link copied to clipboard
fun onItemSelected(position: Int)
Link copied to clipboard
fun onPinClicked(point: Point)
Link copied to clipboard
open override fun onRotaryKnobPressed()
Link copied to clipboard
open override fun onRotateBackward()
Link copied to clipboard
open override fun onRotateForward()