Guia Navigation
Github
  • Overview
  • Setup
  • Using Guia
    • 📔Express Lore
      • Quick Start
    • 📖The Lore
      • Navigation Key
      • Navigation Node
        • Screen
        • Bottom Sheet
        • Dialog
      • Navigator
        • Navigation Operations
        • Navigator Instance
        • Back Handling
      • Navigator Config
        • Dynamic Navigation Node
        • Transitions
      • Containers
      • NavHost
        • Back Handling
      • Multi module navigation
        • NavHost Multi module
      • Deep Linking / Global Navigation
      • Results
      • Lifecycle, ViewModel, Saved State
      • UI Tests
  • 🤖Advanced
    • Custom LifecycleManager
Powered by GitBook
On this page
  1. Using Guia
  2. The Lore

Deep Linking / Global Navigation

PreviousNavHost Multi moduleNextResults

Last updated 2 years ago

Both and can be initialized before they are eventually rendered.

val navigator = rememberNavigator(
    initialize = { navigator -> 
        // Set an initial back stack
    }
)

val navHost = rememberNavHost(
    initialize = { navHost ->
        // Set active entry / update navigators
    }
)

The shows one way of handling deeplinking when an activity is created and when a new intent is received while the activity is already created.

The example can also be used for global navigation. This is very handy where we want to navigate from a deeply nested area of our navigation hierarchy to another with no direct navigation link.

📖
Navigator
NavHost
sample deeplinking example
GlobalNavigator