public abstract class CarTemplate
- Object
- CarTemplate
Known subtypesCarGridTemplate, CarListTemplate, CarMessageTemplate, CarNavigationTemplate, CarNowPlayingTemplate, CarPaneTemplate
The base type for the fixed catalog of in-car templates. Unlike Codename One Forms, 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.
Constructors
public CarTemplate() |
Methods
public String getTitle() | Returns the template title shown in the head-unit header, or null. |
Inherited methods
Constructor details
CarTemplate
public CarTemplate()Method details
getTitle
public String getTitle()Returns the template title shown in the head-unit header, or null.