SpotlightSection


@CarProtocol
@RequiresCarApi(value = 9)
@ExperimentalCarApi
public final class SpotlightSection extends 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

Nested types

A builder of SpotlightSection.

Public methods

boolean
@NonNull CarIcon

Returns the image associated with the section.

@Nullable OnClickDelegate

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

int
@NonNull String

Inherited methods

From androidx.car.app.model.Section
@Nullable CarText

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

@Nullable OnItemVisibilityChangedDelegate

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

@Nullable CarText

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

Public methods

equals

public boolean equals(@Nullable Object other)

getImage

Added in 1.8.0-beta01
public @NonNull CarIcon getImage()

Returns the image associated with the section.

getImageOnClickDelegate

Added in 1.8.0-beta01
public @Nullable OnClickDelegate getImageOnClickDelegate()

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

hashCode

public int hashCode()

toString

public @NonNull String toString()