AppDataSelectableItem

open class AppDataSelectableItem(val mutableState: AppDataSelectableItem.AppDataSelectedState, onUpdated: (isSelected: Boolean) -> Unit? = null) : SelectableItem(source)

Represents a selectable item that holds AppInfoData.

This class extends SelectableItem and provides specific functionality for handling selection state based on the selected property of an AppInfoData object.

Parameters

mutableState

The AppDataSelectedState that manages the selection state of the item.

onUpdated

A lambda function that is invoked when the selection state of the item changes. It receives a Boolean indicating whether the item is now selected. Defaults to null if no specific action is needed on update.

Constructors

Link copied to clipboard
constructor(appInfoData: AppInfoData, onUpdated: (isSelected: Boolean) -> Unit)
constructor(mutableState: AppDataSelectableItem.AppDataSelectedState, onUpdated: (isSelected: Boolean) -> Unit? = null)

Types

Link copied to clipboard

Manages the selection state of an AppInfoData object.

Properties

Functions

Link copied to clipboard
fun updateBase(appInfoData: AppInfoData)

Updates the base AppInfoData for this item.