ViewDataRepository
Repository for creating view data models.
This class is responsible for transforming raw data into view-specific data models that can be used by the UI layer. It utilizes a DataLoader to fetch application information and icons, and a SelectStateLoader to manage the selection state of items.
Parameters
dataLoader
The loader for accessing application data and icons.
selectStateLoader
The loader for managing the selection state of items.
Functions
Link copied to clipboard
Creates an AllAppsViewData object based on a list of AppInfoViewData objects.
Link copied to clipboard
Creates an AppInfoViewData object from an AppInfoData object.
Link copied to clipboard
fun createCategoryViewData(appData: CategoryAppData, viewDataList: List<AppInfoViewData>): CategoryViewData
Creates a CategoryViewData object.
Link copied to clipboard
Creates a GroupTitleViewData object from a GroupAppData object.