Stay organized with collections
Save and categorize content based on your preferences.
class BannerSection.Builder : Section.BaseBuilder
A builder that constructs BannerSection instances.
Summary
Public functions |
BannerSection |
Constructs a new BannerSection from the current state of this builder, throwing exceptions for any invalid state.
|
Inherited functions |
From androidx.car.app.model.Section.BaseBuilder
B |
Adds an item to this section, appending to the existing list of items.
|
B |
Delete all items in this section.
|
B |
Sets the items for this section, overwriting any other previously set items.
|
B |
Sets or clears the optional message to display in this section when there are 0 items added to it.
|
B |
Sets or clears the optional message to display in this section when there are 0 items added to it.
|
B |
Sets the OnItemVisibilityChangedListener to call when the visible items in this Section changes.
|
B |
Sets the SectionHeader for this section.
|
B |
Sets or clears the optional title that appears above the items in this section.
|
B |
Sets or clears the optional title that appears above the items in this section.
|
|
Public functions
fun build(): BannerSection
Constructs a new BannerSection from the current state of this builder, throwing exceptions for any invalid state.
Upon building, this class validates that exactly one Banner is present.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-07-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-07-15 UTC."],[],[]]