-
@Stable() public final class NavEntry<T extends Object>A single item of a backstack with its own identity. The backstack may contain several equal destinations, and this wrapper class helps differentiate them.
The identity is preserved by id property. Every entry with a unique
idin the NavHost will be served its own set of components such as a Lifecycle, a SavedStateRegistry and a ViewModelStore. Additionally, it will be able to remember all saveables within composition (rememberSaveable).
-
-
Field Summary
Fields Modifier and Type Field Description private final NavIdidprivate final Tdestination
-
Method Summary
-
-
Method Detail
-
getDestination
final T getDestination()
A destination you passed into navigate, replaceLast or other extension method. If you used NavController.setNewBackstack directly this is the destination you passed into navEntry method.
-
-
-
-