PollResultsViewModel

class PollResultsViewModel(poll: Poll, controllerProvider: ViewModel.() -> PollResultsViewController = { PollResultsViewController( poll = poll, ) }) : ViewModel

ViewModel for managing poll results state in Compose UI components.

Parameters

poll

The poll to display results for.

controllerProvider

The provider for PollResultsViewController.

Constructors

Link copied to clipboard
constructor(poll: Poll, controllerProvider: ViewModel.() -> PollResultsViewController = { PollResultsViewController( poll = poll, ) })

Properties

Link copied to clipboard
val state: StateFlow<PollResultsViewState>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard