Automotive Design for Compose is an extension to Jetpack Compose that allows every screen, component, and overlay of your Android App to be defined in Figma, and lets you see the latest changes to your Figma design in your app, immediately!
It is currently not possible to get information about the current UI prototype state in Figma from the code side in Android. For example, it is not possible to know the current screen being displayed which blocks some use cases such as:
In a multiple-step-flow application containing several screens, it is not possible to manage the logic in each step properly due to a possible lost of synchronization between Figma and the code, and it can not be guaranteed which is the visible screen from code.
Persist data of current screen for a later reload of the application.
Implementation of a tabBar always visible to navigate through the application and highlight the current visible view including current state of the buttons.
It is neither possible to set a prototype state to be navigated to, which blocks the following use cases:
Navigate to a predefined navigation when entering the application from two different entry points in the system, for example from the grid menu or from another application.
Interaction with an external hardkey/device like steering wheel buttons or rotary knobs to control navigation of screens.
+1
On feal project. get/set about the current UI prototype state in Figma from the code side in Android is necessary.
e.g. Conditional screen transition from the code
It is currently not possible to get information about the current UI prototype state in Figma from the code side in Android. For example, it is not possible to know the current screen being displayed which blocks some use cases such as:
It is neither possible to set a prototype state to be navigated to, which blocks the following use cases: