koinEntryProvider

fun koinEntryProvider(scope: Scope = LocalKoinScopeContext.current.getValue()): EntryProvider

Composable function that retrieves an EntryProvider from the current or specified Koin scope.

This function collects all registered EntryProviderInstaller instances from the Koin scope and aggregates them into a single EntryProvider that can be used with Navigation 3. By default, it uses the scope from LocalKoinScopeContext, but a custom scope can be provided.

Example usage:

@Composable
fun MyApp() {
val entryProvider = koinEntryProvider()
NavigationHost(entryProvider) {
// Your navigation setup
}
}

Return

An EntryProvider that combines all registered navigation entries from the scope

Parameters

scope

The Koin scope to retrieve navigation entries from. Defaults to LocalKoinScopeContext.current.

See also

for the navigation entry provider type

for defining navigation entries in Koin modules