Screen
A full-screen destination rendered in the RenderLayer.CONTENT layer.
Implement this interface on an object to define a screen in your navigation graph. Default transition values are null (no animation) for pop transitions and the navigatable defaults for enter/exit; override them as needed.
object HomeScreen : Screen {
override val route = "home"
override val enterTransition = NavTransition.SlideInRight
override val exitTransition = NavTransition.SlideOutLeft
@Composable
override fun Content(params: Params) {
Text("Home")
}
}Content copied to clipboard
See also
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Called when this navigatable is added to the backstack.
Link copied to clipboard
fun Navigatable.toNavigationEntry(path: String, params: Params = Params.empty(), stackPosition: Int = 0): NavigationEntry
Creates a NavigationEntry for this Navigatable at the given path.