# Class CarTemplate

java.lang.Object
com.codename1.car.CarTemplate

Direct Known Subclasses:
  `CarGridTemplate, CarListTemplate, CarMessageTemplate, CarNavigationTemplate, CarNowPlayingTemplate, CarPaneTemplate`

public abstract class CarTemplate extends Object

The base type for the fixed catalog of in-car templates. Unlike Codename One `Form`s, the head unit (Apple CarPlay / Google Android Auto) does not allow arbitrary rendering -- it only displays one of a small, driver-distraction-vetted set of templates. A `CarScreen` produces exactly one `CarTemplate` from its `CarScreen#createTemplate()` method.

Concrete templates:

- `CarListTemplate` -- a (optionally sectioned) scrolling list of rows.
- `CarGridTemplate` -- a grid of image-forward items.
- `CarPaneTemplate` -- a detail pane of label/value rows plus action buttons.
- `CarMessageTemplate` -- a short message with actions (and read-aloud/voice-reply for messaging).
- `CarNavigationTemplate` -- a turn-by-turn surface with a drawable map (navigation apps only).
- `CarNowPlayingTemplate` -- the system now-playing surface for audio apps.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CarTemplate()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getTitle()`
  Returns the template title shown in the head-unit header, or null.

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CarTemplate

    public CarTemplate()

- ## Method Details

  - ### getTitle

    public String getTitle()
    Returns the template title shown in the head-unit header, or null.