Class CarTemplate
java.lang.Object
com.codename1.car.CarTemplate
- Direct Known Subclasses:
CarGridTemplate, 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.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CarTemplate
public CarTemplate()
-
-
Method Details
-
getTitle
Returns the template title shown in the head-unit header, or null.
-