NavBackStackKt


public final class NavBackStackKt

Summary

Public methods

static final @NonNull SnapshotStateList<@NonNull NavKey>

Provides a NavBackStack that is automatically remembered in the Compose hierarchy across process death and config changes.

Public methods

rememberNavBackStack

@Composable
public static final @NonNull SnapshotStateList<@NonNull NavKeyNavKey> rememberNavBackStack(@NonNull T elements)

Provides a NavBackStack that is automatically remembered in the Compose hierarchy across process death and config changes.

Classes/objects added to the NavBackStack should be annotated with Serializable to ensure they can be saved and restored properly.