public final class

RowListConstraints.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.app.model.constraints.RowListConstraints.Builder

Overview

A builder of RowListConstraints.

Summary

Constructors
publicBuilder()

Returns an empty RowListConstraints.Builder instance.

publicBuilder(RowListConstraints constraints)

Return a a new builder for the given RowListConstraints instance.

Methods
public RowListConstraintsbuild()

Constructs the RowListConstraints defined by this builder.

public RowListConstraints.BuildersetAllowSelectableLists(boolean allowSelectableLists)

Sets whether selectable lists are allowed.

public RowListConstraints.BuildersetMaxActions(int maxActions)

Sets the maximum number of actions allowed to be added alongside the list.

public RowListConstraints.BuildersetRowConstraints(RowConstraints rowConstraints)

Sets the constraints to apply on individual rows.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Returns an empty RowListConstraints.Builder instance.

public Builder(RowListConstraints constraints)

Return a a new builder for the given RowListConstraints instance.

Methods

public RowListConstraints.Builder setMaxActions(int maxActions)

Sets the maximum number of actions allowed to be added alongside the list.

public RowListConstraints.Builder setRowConstraints(RowConstraints rowConstraints)

Sets the constraints to apply on individual rows.

public RowListConstraints.Builder setAllowSelectableLists(boolean allowSelectableLists)

Sets whether selectable lists are allowed.

public RowListConstraints build()

Constructs the RowListConstraints defined by this builder.