PopUpToBuilder
@NavOptionsDsl
public final class PopUpToBuilder
DSL for customizing NavOptionsBuilder.popUpTo operations.
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
final boolean |
Whether the |
final boolean |
Whether the back stack and the state of all destinations between the current destination and the |
final void |
setInclusive(boolean inclusive)Whether the |
final void |
setSaveState(boolean saveState)Whether the back stack and the state of all destinations between the current destination and the |
Public constructors
Public methods
getInclusive
public final boolean getInclusive()
Whether the popUpTo destination should be popped from the back stack.
getSaveState
public final boolean getSaveState()
Whether the back stack and the state of all destinations between the current destination and the NavOptionsBuilder.popUpTo ID should be saved for later restoration via NavOptionsBuilder.restoreState or the restoreState attribute using the same NavOptionsBuilder.popUpTo ID (note: this matching ID is true if inclusive is true. If inclusive is false, this matching ID is the id of the last destination that is popped).
setInclusive
public final void setInclusive(boolean inclusive)
Whether the popUpTo destination should be popped from the back stack.
setSaveState
public final void setSaveState(boolean saveState)
Whether the back stack and the state of all destinations between the current destination and the NavOptionsBuilder.popUpTo ID should be saved for later restoration via NavOptionsBuilder.restoreState or the restoreState attribute using the same NavOptionsBuilder.popUpTo ID (note: this matching ID is true if inclusive is true. If inclusive is false, this matching ID is the id of the last destination that is popped).