Navigation 3 for Jetpack Compose introduces a simplified approach to app navigation by replacing navigation graphs with a back stack management system. Key features include automatic UI updates, scoped state retention, adaptive layouts, and parent-child communication. The new system allows developers to own and control the back stack directly, using serializable keys to represent destinations. Implementation involves setting up dependencies, defining destinations as data objects or classes, creating an entryProvider DSL for routing, and using the NavDisplay composable to render navigation content with automatic state management.
Table of contents
Setting UpManaging the BackstackDeclaring Navigation RoutingComposing NavigationIncluding Navigation DataSaving Navigation State in ViewModelsSort: