AppBarConfiguration

public final class AppBarConfiguration


Configuration options for NavigationUI methods that interact with implementations of the app bar pattern such as androidx.appcompat.widget.Toolbar, com.google.android.material.appbar.CollapsingToolbarLayout, and androidx.appcompat.app.ActionBar.

Summary

Nested types

AppBarConfiguration.Builder

The Builder class for constructing new AppBarConfiguration instances.

AppBarConfiguration.OnNavigateUpListener

Interface for providing custom 'up' behavior beyond what is provided by androidx.navigation.NavController.navigateUp.

Public fields

final DrawerLayout

The DrawerLayout indicating that the Navigation button should be displayed as a drawer symbol when it is not being shown as an Up button.

final AppBarConfiguration.OnNavigateUpListener

The OnNavigateUpListener that should be invoked if androidx.navigation.NavController.navigateUp returns false.

final Openable

The Openable layout indicating that the Navigation button should be displayed as a drawer symbol when it is not being shown as an Up button.

final @NonNull Set<@NonNull Integer>

The set of destinations by id considered at the top level of your information hierarchy.

Public fields

drawerLayout

public final DrawerLayout drawerLayout

The DrawerLayout indicating that the Navigation button should be displayed as a drawer symbol when it is not being shown as an Up button.

Returns
DrawerLayout

The DrawerLayout that should be toggled from the Navigation button

fallbackOnNavigateUpListener

public final AppBarConfiguration.OnNavigateUpListener fallbackOnNavigateUpListener

The OnNavigateUpListener that should be invoked if androidx.navigation.NavController.navigateUp returns false.

Returns
AppBarConfiguration.OnNavigateUpListener

a OnNavigateUpListener for providing custom up navigation logic, if one was set.

openableLayout

public final Openable openableLayout

The