CondensedItem


@RequiresCarApi(value = 9)
@ExperimentalCarApi
@CarProtocol
class CondensedItem : Item


A main UI component representing an item in a condensed format.

Summary

Nested types

A builder for CondensedItem.

Constants

const Int

Represents an icon to be displayed in the condensed item.

const Int

Represents a large image.

const Int

Represents a small image.

Public functions

Boolean
equals(other: Any?)
CarIcon?

Returns the leading image of the item, or null if not set.

Int

Returns the type of the leading image.

OnClickDelegate?

Returns the OnClickDelegate for the item, or null if not set.

CarProgressBar?

Returns the CarProgressBar for the item, or null if not set.

CondensedItemStyle?

Returns the style of the item, or null if not set.

CarText?

Returns the text of the item, or null if not set.

CarText?

Returns the title of the item, or null if not set.

CarIcon?

Returns the trailing image of the item, or null if not set.

Int

Returns the type of the trailing image.

Int
Boolean

Returns whether the item can be included in indexed lists.

String

Constants

IMAGE_TYPE_ICON

Added in 1.8.0
const val IMAGE_TYPE_ICON = 1: Int

Represents an icon to be displayed in the condensed item.

A tint color is expected to be provided via setTint. Otherwise, a default tint color as determined by the host will be applied.

IMAGE_TYPE_LARGE

Added in 1.8.0
const val IMAGE_TYPE_LARGE = 3: Int

Represents a large image. The host renders it edge-to-edge, scaling the image to fill and potentially crop within the bounds.

IMAGE_TYPE_SMALL

Added in 1.8.0
const val IMAGE_TYPE_SMALL = 2: Int

Represents a small image. The host renders it with standard padding and scales the image to fit within the bounds.

Public functions

equals

fun equals(other: Any?): Boolean

getLeadingImage

Added in 1.8.0
fun getLeadingImage(): CarIcon?

Returns the leading image of the item, or null if not set.

getLeadingImageType

Added in 1.8.0
fun getLeadingImageType(): Int

Returns the type of the leading image.

getOnClickDelegate

Added in 1.8.0
fun getOnClickDelegate(): OnClickDelegate?

Returns the OnClickDelegate for the item, or null if not set.

getProgressBar

Added in 1.8.0
fun getProgressBar(): CarProgressBar?

Returns the CarProgressBar for the item, or null if not set.

getStyle

Added in 1.8.0
fun getStyle(): CondensedItemStyle?

Returns the style of the item, or null if not set.

getText

Added in 1.8.0
fun getText(): CarText?

Returns the text of the item, or null if not set.

getTitle

Added in 1.8.0
fun getTitle(): CarText?

Returns the title of the item, or null if not set.

getTrailingImage

Added in 1.8.0
fun getTrailingImage(): CarIcon?

Returns the trailing image of the item, or null if not set.

getTrailingImageType

Added in 1.8.0
fun getTrailingImageType(): Int

Returns the type of the trailing image.

hashCode

fun hashCode(): Int

isIndexable

Added in 1.9.0-alpha01
fun isIndexable(): Boolean

Returns whether the item can be included in indexed lists.

See also
setIndexable

toString

fun toString(): String