-
public final class PollResultsViewControllerController responsible for managing the state and events related to poll results.
This controller processes poll data to create a view state that displays all poll options, with each option showing up to MAX_VOTES_TO_SHOW votes and a "Show All" button when there are more votes available. The controller does not fetch votes from the API; it uses votes already present in the poll object.
-
-
Field Summary
Fields Modifier and Type Field Description private final StateFlow<PollResultsViewState>state
-
Constructor Summary
Constructors Constructor Description PollResultsViewController(Poll poll)
-
Method Summary
Modifier and Type Method Description final StateFlow<PollResultsViewState>getState()The current state of the poll results view. -
-
Method Detail
-
getState
final StateFlow<PollResultsViewState> getState()
The current state of the poll results view.
-
-
-
-