Render Jetpack Compose content onto the custom map
surface of an AndroidX Car App Screen — for
both Android Auto and Android Automotive OS.
The Car App library hands your app a raw Surface for the map area but no view system on top of it.
ComposableScreen hosts that surface on a virtual display and presents a ComposeView into it, so
you can write your map/overlay UI as ordinary @Composable functions while still returning a normal
Car App Template for the rest of the screen.
dependencies {
implementation("io.github.rallista:car-app-compose:<version>")
}Usage, required permissions, and surface gesture handling are documented in the API reference generated by Dokka:
./gradlew :composable-screen:dokkaGenerateThe module overview and examples live in
composable-screen/dokka/module.md.
MPL-2.0 — see LICENSE.