AllAppsSelectableItem

class AllAppsSelectableItem @JvmOverloads constructor(list: List<SelectableItem>, onUpdated: (isSelected: Boolean) -> Unit = { }) : SelectableItem, DisposableHandle, LogTag(source)

Represents a selectable item that groups multiple SelectableItem instances. Its selection state reflects whether all underlying items are selected.

This class allows for a "select all" functionality. When this item is selected, all its constituent items are also selected. Conversely, if any of the constituent items are deselected, this "select all" item will also become deselected.

It implements DisposableHandle to manage the lifecycle of listeners attached to the underlying SelectableItem instances, ensuring they are properly cleaned up when this item is no longer needed.

Constructors

Link copied to clipboard
constructor(list: List<SelectableItem>, onUpdated: (isSelected: Boolean) -> Unit = { })

Properties

Link copied to clipboard
open override val logTag: String

Functions

Link copied to clipboard
open override fun dispose()
Link copied to clipboard
fun reset(dataList: List<SelectableItem>)