BannerSection


@CarProtocol
@ExperimentalCarApi
@RequiresCarApi(value = 9)
public final class BannerSection extends Section


A section within the SectionedItemTemplate that contains a Banner.

This section is good for displaying transient, high-priority information or alerts with optional actions.

Summary

Nested types

public final class BannerSection.Builder extends Section.BaseBuilder

A builder that constructs BannerSection instances.

Public methods

boolean
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 SectionHeader

Returns the SectionHeader for this section, or null if not 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)

hashCode

public int hashCode()

toString

public @NonNull String toString()