LoadingModal
A full-screen SYSTEM overlay shown while a guard or entry definition is evaluating.
Automatically shown by evaluateWithThreshold when evaluation exceeds the configured loading threshold, and removed atomically once navigation commits.
Sits at the bottom of the SYSTEM layer (elevation = 0f) so that user-triggered SYSTEM modals (e.g. system alerts) always render above it.
Stacking order within RenderLayer.SYSTEM:
LoadingModal→zIndex(9001f + 0f)= 9001fNormal SYSTEM
Modal→zIndex(9001f + 1000f)= 10001f
Usage:
object AuthLoadingScreen : LoadingModal {
override val route = "auth-loading"
override val enterTransition = NavTransition.Fade
override val exitTransition = NavTransition.FadeOut
override val requiresAuth = false
@Composable
override fun Content(params: Params) { /* loading UI */}
}Properties
When true (the default), the system back gesture/button dismisses this modal via navigateBack. Set to false for mandatory modals that must not be dismissed by the user. Also gates tapOutsideToDismiss — if this is false, tapping outside does nothing even when tapOutsideToDismiss is true.
Which layer this navigatable should render in
When true (the default), tapping on the dim background outside the modal content calls navigateBack. The dim layer always captures all taps regardless of this flag, preventing clicks from passing through to screens behind the modal.
Functions
Called when this navigatable is added to the backstack.
Creates a NavigationEntry for this Navigatable at the given path.