SelectStateLoader

Manages the state of selectable items in a list, including individual items, category-level selections, and an "all apps" selection. It provides methods to create and manage these selectable items, handle selection events, and update their states.

This class is intended for internal library use only.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Interface for listening to selection state changes.

Properties

Link copied to clipboard
open override val logTag: String

Functions

Link copied to clipboard
fun clearData()

Clears all selectable items and their associated data.

Link copied to clipboard

Creates an AllAppsSelectableItem from the given list of SelectableItem and sets the selection listener.

Link copied to clipboard

Creates a {@link SelectableItem} for the given {@link AppInfoData}.

Link copied to clipboard

Sets the listener to be notified when an item's selection state changes.

Link copied to clipboard
fun setStateAll(viewDataList: List<ViewData>, state: Boolean)

Sets the selection state for all items in the given list of ViewData.

Link copied to clipboard
fun updateSelectableItemList(selectableItemList: List<SelectableItem>)

Updates the list of SelectableItems associated with the "all apps" selectable item.