Navigation Component(Jetpackの一部)は、アプリ内ナビゲーション を扱うための推奨される方法であり、シングルActivityアーキテクチャ内で目的地(Fragmentやコンポーザブル)間を移動します。ナビゲーションのロジックを一元化し、バックスタック、引数、ディープリンクを処理します。
提供されるもの
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)
