rememberListDetailPaneScaffoldNavigator

Composable Function
Android
@ExperimentalMaterial3AdaptiveApi
@Composable
fun <T> rememberListDetailPaneScaffoldNavigator(
    scaffoldDirective: PaneScaffoldDirective =
        calculateStandardPaneScaffoldDirective(currentWindowAdaptiveInfo()),
    adaptStrategies: ThreePaneScaffoldAdaptStrategies =
        ListDetailPaneScaffoldDefaults.adaptStrategies(),
    isDestinationHistoryAware: Boolean = true,
    initialDestinationHistory: List<ThreePaneScaffoldDestinationItem<T>> =
        DefaultListDetailPaneHistory,
): ThreePaneScaffoldNavigator<T>

Returns a remembered default implementation of ThreePaneScaffoldNavigator for ListDetailPaneScaffold, which will be updated automatically when the input values change. The default navigator is supposed to be used independently from any navigation frameworks and it will address the navigation purely inside the ListDetailPaneScaffold.

Parameters

scaffoldDirective the current layout directives to follow. The default value will be calculated with calculateStandardPaneScaffoldDirective using WindowAdaptiveInfo retrieved from the current context.
adaptStrategies adaptation strategies of each pane.
isDestinationHistoryAware true if the scaffold value calculation should be aware of the full destination history, instead of just the current destination. See calculateThreePaneScaffoldValue for more relevant details.
initialDestinationHistory the initial pane destination history of the scaffold, by default it will be just the list pane.