SpotlightSection


@CarProtocol
@RequiresCarApi(value = 9)
@ExperimentalCarApi
class SpotlightSection : Section


A section within the SectionedItemTemplate that contains a single image and multiple CondensedItems. The items are rendered next to the image. Depending on the screen size, only some of the leading items may be placed.

Summary

Public functions

Boolean
equals(other: Any?)
CarIcon

Returns the image associated with the section.

OnClickDelegate?

Returns the OnClickDelegate for the image, or null if not clickable.

Int
String

Inherited functions

From androidx.car.app.model.Section
CarText?

Returns the optional message that should appear if there are no items added to this section.

OnItemVisibilityChangedDelegate?

Returns the OnItemVisibilityChangedDelegate to be called when the visible items in this Section changes, or null if one isn't set.

CarText?

Returns the optional text that should appear with the items in this section.

Public functions

equals

fun equals(other: Any?): Boolean

getImage

Added in 1.8.0-beta01
fun getImage(): CarIcon

Returns the image associated with the section.

getImageOnClickDelegate

Added in 1.8.0-beta01
fun getImageOnClickDelegate(): OnClickDelegate?

Returns the OnClickDelegate for the image, or null if not clickable.

hashCode

fun hashCode(): Int

toString

fun toString(): String