Package-level declarations
Types
Link copied to clipboard
Chirpy state for one docs pane. The conversation and its requests live in the app-scoped ChirpySessionHolder, so they outlive this ViewModel.
Link copied to clipboard
class DocsBrowserViewModel(bundleLoader: DocBundleLoader, searchEngine: KeywordSearchEngine) : ViewModel
Lists the docs bundle, or the keyword-search results while a query is typed.
Link copied to clipboard
data class DocsPageUiState(val content: DocPageContent? = null, val isLoading: Boolean = true, val translationSource: TranslationSource = TranslationSource.UNTRANSLATED)
What the page screen shows: the page content, whether it is still loading, and where its text came from.
Link copied to clipboard
class DocsPageViewModel(@Assisted pageId: String, bundleLoader: DocBundleLoader, translationService: DocTranslationService, dispatchers: CoroutineDispatchers) : ViewModel
Loads one docs page for a locale: a bundled Crowdin file first, then English, then runtime translation.