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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A screen always has an arrival, so these narrow the nullable spec to non-null.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
True when this node describes a surface of its own rather than deferring to what it contains.
Link copied to clipboard
Which layer this navigatable should render in
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.