PopUpToBuilder

public final class PopUpToBuilder


DSL for customizing NavOptionsBuilder.popUpTo operations.

Summary

Public fields

final boolean

Whether the popUpTo destination should be popped from the back stack.

final boolean

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 whether inclusive is true or false).

Public constructors

Public fields

inclusive

@NonNull
public final boolean inclusive

Whether the popUpTo destination should be popped from the back stack.

saveState

@NonNull
public final 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 whether inclusive is true or false).

Public constructors

PopUpToBuilder

public final PopUpToBuilder()