Create your start screen
Stay organized with collections
Save and categorize content based on your preferences.
To create the screens displayed by your app, you define the classes that extend
the Screen class and implement its onGetTemplate method to return the
Template instance that represents the state of the UI to display in the
car screen.
This code snippet shows how to declare a Screen that uses a
PaneTemplate template to display a "Hello world!" string:
class MyStartScreen(carContext: CarContext) : Screen(carContext) {
override fun onGetTemplate(): Template {
val row = Row.Builder().setTitle("Hello world!").build()
val pane = Pane.Builder().addRow(row).build()
val header = Header.Builder()
.setStartHeaderAction(Action.APP_ICON)
.build()
return PaneTemplate.Builder(pane)
.setHeader(header)
.build()
}
}
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-04-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-13 UTC."],[],[]]