FaqViewModel

class FaqViewModel(faqRepository: FaqRepository, forceInAppReviewUseCase: ForceInAppReviewUseCase, telemetryRepository: TelemetryRepository) : LoggedScreenViewModel<FaqUiState, FaqEvent> (source)

ViewModel for the help page: the questions, and the review request from the feedback sheet.

Both the repository and the review use case are main-safe, so it needs no dispatcher.

Constructors

Link copied to clipboard
constructor(faqRepository: FaqRepository, forceInAppReviewUseCase: ForceInAppReviewUseCase, telemetryRepository: TelemetryRepository)

Properties

Link copied to clipboard
val messages: StateFlow<ImmutableList<UiMessage>>
Link copied to clipboard
val state: StateFlow<FaqUiState>

Functions

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