NavHost
- NavHost → is a container which is responsible for rendering (or) displaying a composable screen (or) group of composable screens.
NavController
- NavController → is used to navigate from one screen to another screen
NavGraph
- NavGraph → is like a Map, it will consists of the path connection of the screens.
- The
NavController and NavGraph will present inside the “NavHost”.
For Navigating from one screen to another screen, one important concept we need to understand is “Route”
Route
- Route → is similar to a “url” name for different web pages present in a web site.
- Same like that, each screen in an application has it’s unique “url” as a “route”
- We will use this url(route) on the “NavGraph” to point the url to a particular screen.