PackageListBuilder

class PackageListBuilder(isCompact: Boolean, onlyStable: Boolean, headerCollapsedStates: Map<PackageListItem.Header.Id, PackageListItemEvent.SetHeaderState.TargetState>, packagesLoadingState: Set<PackageListItem.Package.Id>, headerLoadingStates: Set<PackageListItem.Header.Id.Declared>, searchQuery: String, modulesMap: Map<PackageSearchModule.Identity, PackageSearchModule>)

Constructors

Link copied to clipboard
constructor(isCompact: Boolean, onlyStable: Boolean, headerCollapsedStates: Map<PackageListItem.Header.Id, PackageListItemEvent.SetHeaderState.TargetState>, packagesLoadingState: Set<PackageListItem.Package.Id>, headerLoadingStates: Set<PackageListItem.Header.Id.Declared>, searchQuery: String, modulesMap: Map<PackageSearchModule.Identity, PackageSearchModule>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addDeclaredPackage(title: String, subtitle: String, id: PackageListItem.Package.Declared.Id, icon: IconProvider.Icon, latestVersion: String? = null, selectedScope: String?, availableScopes: List<String>, declaredVersion: String?, availableVersions: List<String>, allowMissingScope: Boolean)
Link copied to clipboard
fun addFromBaseModule(base: PackageSearchModule.Base)
Link copied to clipboard
fun addFromModule(module: PackageSearchModule)
Link copied to clipboard
fun addFromModules(modules: List<PackageSearchModule>)
Link copied to clipboard
fun addFromModuleWithVariants(withVariants: PackageSearchModule.WithVariants)
Link copied to clipboard
Link copied to clipboard
fun addHeader(title: String, id: PackageListItem.Header.Id, state: PackageListItem.Header.State, attributes: List<String> = emptyList(), additionalContent: PackageListItem.Header.AdditionalContent? = null)
Link copied to clipboard