Android Navigation (Jetpack Compose)
Priority: P2 (OPTIONAL)
Navigation and deep linking using Jetpack Compose Navigation.
Guidelines
- •Library: Use
androidx.navigation:navigation-compose. - •Type Safety: Use sealed classes for routes, never raw strings.
- •Deep Links: Configure
intent-filterin Manifest anddeepLinksin NavHost. - •Validation: Validate arguments (e.g., proper IDs) before loading content.
Anti-Patterns
- •No String Routes: Use
Screen.Product.routeinstead of"product/$id". - •No Unvalidated Deep Links: Check resource existence before rendering.
- •No Missing Manifest: Deep links require
autoVerify=trueintent filters.
Related Topics
android-design-system | android-notifications | mobile-ux-core