GridTemplate.Builder

public static final class GridTemplate.Builder
extends Object

java.lang.Object
   ↳ androidx.car.app.model.GridTemplate.Builder


A builder of GridTemplate.

Summary

Public constructors

Builder()

Returns an empty GridTemplate.Builder instance.

Public methods

GridTemplate build()

Constructs the template defined by this builder.

GridTemplate.Builder setActionStrip(ActionStrip actionStrip)

Sets the ActionStrip for this template.

GridTemplate.Builder setHeaderAction(Action headerAction)

Sets the Action that will be displayed in the header of the template.

GridTemplate.Builder setLoading(boolean isLoading)

Sets whether the template is in a loading state.

GridTemplate.Builder setSingleList(ItemList list)

Sets a single ItemList to show in the template.

GridTemplate.Builder setTitle(CharSequence title)

Sets the title of the template.

Inherited methods