public final class

TabContents.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.app.model.TabContents.Builder

Overview

A builder of TabContents.

Summary

Constructors
publicBuilder(Template template)

Creates a TabContents.Builder instance using the given Template to display as contents.

Methods
public TabContentsbuild()

Constructs the TabContents defined by this builder.

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

Constructors

public Builder(Template template)

Creates a TabContents.Builder instance using the given Template to display as contents.

There should be no title, Header Action or ActionStrip set on the template. The host will ignore these.

From Car API 6 onward, the following template types are supported as content:

  • ListTemplate
  • PaneTemplate
  • GridTemplate
  • MessageTemplate
  • SearchTemplate

From Car API 7 onward, the following templates types are supported as content in addition to all previously supported template types:

  • NavigationTemplate

Methods

public TabContents build()

Constructs the TabContents defined by this builder.