Package 

Class NavEntry


  • @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 id in 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 NavId id
      private final T destination
    • Method Summary

      Modifier and Type Method Description
      final NavId getId() Autogenerated unique ID.
      final T getDestination() A destination you passed into navigate, replaceLast or other extension method.
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait