AppInfoViewData
The UI model for an application item managed by AbsAdapter.
This class combines application information (AppInfoData) with UI-specific properties like icon loading (AppIconFlow), selection state (SelectableItem), and layout information (SpanData). It also implements interfaces for searchability, highlighting, and handling action clicks.
Constructors
Properties
An icon Drawable representing an action associated with the app, defaults to null.
The core application data.
An observable property indicating whether the item should be dimmed in the UI. This typically signifies that the item is not currently selectable or available. It is backed by the AppInfoData.dimmed property and allows for observing changes to it.
An additional text label for supplementary information, defaults to null.
The flow responsible for loading the application icon.
A boolean indicating if the subLabel contains a value that should be specially handled or formatted, defaults to false.
The unique identifier for this item. This is used by diffing algorithms (like androidx.recyclerview.widget.DiffUtil) to compare items in the list. By default, the key
is the object instance itself (this
).
A callback function triggered when an action associated with this item is clicked.
This property provides a list of strings that can be used to search the data. The strings should be representative of the data and should be able to be matched by the user's search query.
The item representing the selectable state of this application.
Functions
Updates the current AppInfoViewData with new application data.