LimitedSelectStrategy

The concrete strategy that does similar to AppItemStrategy but additionally executes LimitedSelectableTask to ensure that the number of selected items is limited to getItemLimitedSize.

Once the maximum selected items is reached, this will set the AppInfoData.dimmed flag of each of the unselected items to true making them unavailable for selection until the selected items is reduced.

By default, the limit set to 5. To customize this limit, override getItemLimitedSize in a subclass.

Parameters

appPickerContext

The context for the app picker, providing access to repositories and other dependencies.

Constructors

Link copied to clipboard
constructor(appPickerContext: AppPickerContext)

Functions

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

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

Link copied to clipboard

Retrieves the maximum number of items that can be selected.