Navigation Component (Jetpack کا حصہ) in-app navigation کو ہینڈل کرنے کا تجویز کردہ طریقہ ہے — ایک single-Activity architecture میں destinations (fragments یا composables) کے درمیان منتقلی۔ یہ navigation logic کو مرکزی کرتا ہے اور 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)
