From the course: Android Compose with Kotlin

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Introduction to the Navigation component

Introduction to the Navigation component - Kotlin Tutorial

From the course: Android Compose with Kotlin

Introduction to the Navigation component

- [Instructor] On Android, navigation is represented as a journey. You have maps called graphs, destinations, routes, and more. They all work together to provide a predictable experience as users move within your app. Let's take a closer look. Every screen in your app is a destination on your navigation graph. How you want the user to move between destinations is defined by routes. For example, when I'm at the session's destination, I can go to the session detail destination, and from there to the speaker's destination. Our guide, the navigation controller, makes this all possible. It is the coordinator for managing navigation between destinations. It does this by keeping track of the current destination and providing methods to allow users to get to where they want to go. When your app is first launched, you land on the starting destination, the contents of which are stored inside a navigation host. This is a UI component that contains the current destination. When a user moves to…

Contents