AppInfoDataImpl

data class AppInfoDataImpl @JvmOverloads constructor(val appInfo: AppInfo, val itemType: Int = TYPE_ITEM_TEXT, var icon: Drawable? = null, var subIcon: Drawable? = null, var label: String? = null, var subLabel: String? = null, var extraLabel: String? = null, var actionIcon: Drawable? = null, var selected: Boolean = false, var dimmed: Boolean = false, var isValueInSubLabel: Boolean = false) : AppInfoData(source)

Concrete implementation of the AppInfoData interface.

This class holds the actual data for an application item to be displayed. It provides default values for most properties and overrides equals and hashCode for proper comparison and use in collections.

Parameters

appInfo

The core AppInfo object containing the application's identity.

itemType

The app itemType representing the type of item.

icon

The main icon Drawable for the app.

subIcon

A secondary icon Drawable, often displayed alongside the main icon.

label

The primary text label for the app.

subLabel

A secondary text label, often displayed below the main label.

extraLabel

An additional text label for supplementary information.

actionIcon

An icon Drawable representing an action associated with the app.

selected

A boolean indicating if the app item is currently selected.

dimmed

A boolean indicating if the app item should be displayed in a dimmed state.

isValueInSubLabel

A boolean indicating if the subLabel contains a value that should be specially handled or formatted.

Constructors

Link copied to clipboard
constructor(appInfo: AppInfo, itemType: Int = TYPE_ITEM_TEXT, icon: Drawable? = null, subIcon: Drawable? = null, label: String? = null, subLabel: String? = null, extraLabel: String? = null, actionIcon: Drawable? = null, selected: Boolean = false, dimmed: Boolean = false, isValueInSubLabel: Boolean = false)

Properties

Link copied to clipboard
open override var actionIcon: Drawable?
Link copied to clipboard
open override val appInfo: AppInfo
Link copied to clipboard
open override var dimmed: Boolean
Link copied to clipboard
open override var extraLabel: String?
Link copied to clipboard
open override var icon: Drawable?
Link copied to clipboard
open override var isValueInSubLabel: Boolean
Link copied to clipboard
open override val itemType: Int
Link copied to clipboard
open override var label: String?
Link copied to clipboard
open override var selected: Boolean
Link copied to clipboard
open override var subIcon: Drawable?
Link copied to clipboard
open override var subLabel: String?