Navigation Component (Jetpack નો ભાગ) એ in-app navigation સંભાળવાનો 권recommended માર્ગ છે — એક single-Activity આર્કિટેક્ચર માં destinations (fragments અથવા composables) વચ્ચે ફરવું. તે navigation logic ને centralize કરે છે અને back stack, arguments, અને deep links સંભાળે છે.
તે શું પ્રદાન કરે છે
The Navigation Component manages navigation within the app:
→ a NAV GRAPH defines destinations (screens) and the actions (paths) between them
(visually/declaratively — one place to see all navigation)
→ a NavController performs navigation; handles the BACK STACK automatically
→ type-safe ARGUMENT passing (Safe Args); deep linking support
→ Designed for SINGLE-ACTIVITY architecture (one activity, many fragment/composable destinations)
