ViewDataRepository

class ViewDataRepository(dataLoader: DataLoader, selectStateLoader: SelectStateLoader)(source)

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.

Constructors

Link copied to clipboard
constructor(dataLoader: DataLoader, selectStateLoader: SelectStateLoader)

Functions

Link copied to clipboard
fun clearData()

Clears all data related to the select state. This function calls the clearData method of the selectStateLoader to remove any stored selection information.

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
Link copied to clipboard