MeshtasticNavDisplay

fun MeshtasticNavDisplay(multiBackstack: MultiBackstack, entryProvider: (key: NavKey) -> NavEntry<NavKey>, modifier: Modifier = Modifier, analytics: PlatformAnalytics? = null)(source)

Shared NavDisplay wrapper that configures the standard Meshtastic entry decorators, scene strategies, and transition animations for all platform hosts.

This version supports multiple backstacks by accepting a MultiBackstack state holder. Every tab's stack is decorated with that tab's own saveable-state and ViewModel-store decorators and only the active tab's entries reach NavDisplay, so showing another tab clears nothing while an entry removed from any stack is still cleared. entryProvider must resolve the keys of every tab, not only the active one.


fun MeshtasticNavDisplay(backStack: NavBackStack<NavKey>, entryProvider: (key: NavKey) -> NavEntry<NavKey>, modifier: Modifier = Modifier, onBack: () -> Unit? = null, analytics: PlatformAnalytics? = null)(source)

Shared NavDisplay wrapper for a single backstack.