Strategy

abstract class Strategy(appPickerContext: AppPickerContext)(source)

The strategy for the creation and management of different UI ViewData objects for AbsAdapter. This includes data that defines the selection behavior of the items.

The concrete strategy subclass is responsible for converting the AppData objects into instances of corresponding subclass of UI ViewData.

Concrete strategies:

See also

Inheritors

Constructors

Link copied to clipboard
constructor(appPickerContext: AppPickerContext)

Properties

Functions

Link copied to clipboard
fun clear()

Clears the data stored in the androidx.picker.repository.ViewDataRepository.

Link copied to clipboard
abstract fun convert(dataList: List<AppData>, comparator: Comparator<ViewData>?): List<ViewData>

Converts a list of AppData objects into a list of ViewData objects.