GridSection.Builder
@ExperimentalCarApi
class GridSection.Builder : Section.BaseBuilder
| kotlin.Any | ||
| ↳ | androidx.car.app.model.Section.BaseBuilder | |
| ↳ | androidx.car.app.model.GridSection.Builder |
A builder that constructs GridSection instances.
Summary
Public constructors |
|---|
Builder()Create a new |
Public functions |
|
|---|---|
GridSection |
build()Creates a new |
GridSection.Builder |
@CanIgnoreReturnValueSets how the images of all grid items within this section should be rendered. |
GridSection.Builder |
@CanIgnoreReturnValueSets the size of the items within this section. |
Inherited functions |
||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
Public functions
build
fun build(): GridSection
Creates a new GridSection based off the state of this builder.
setItemImageShape
@CanIgnoreReturnValue
fun setItemImageShape(itemImageShape: Int): GridSection.Builder
Sets how the images of all grid items within this section should be rendered. Uses ITEM_IMAGE_SHAPE_UNSET by default.
setItemSize
@CanIgnoreReturnValue
fun setItemSize(itemSize: Int): GridSection.Builder
Sets the size of the items within this section.