# AppBarConfigurationKt

Added in 2.4.0

*** ** * ** ***

<br />

```
public final class AppBarConfigurationKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/ui/AppBarConfiguration` | `https://developer.android.com/reference/androidx/navigation/ui/AppBarConfigurationKt#AppBarConfiguration(androidx.navigation.NavGraph,androidx.customview.widget.Openable,kotlin.Function0)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/NavGraph navGraph, https://developer.android.com/reference/androidx/customview/widget/Openable drawerLayout, @https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Boolean.html> fallbackOnNavigateUpListener )` Configuration options for `https://developer.android.com/reference/androidx/navigation/ui/NavigationUI` methods that interact with implementations of the app bar pattern such as `https://developer.android.com/reference/androidx/appcompat/widget/Toolbar`, `https://developer.android.com/reference/com/google/android/material/appbar/CollapsingToolbarLayout.html`, and `https://developer.android.com/reference/androidx/appcompat/app/ActionBar`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/ui/AppBarConfiguration` | `https://developer.android.com/reference/androidx/navigation/ui/AppBarConfigurationKt#AppBarConfiguration(kotlin.collections.Set,androidx.customview.widget.Openable,kotlin.Function0)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Integer.html> topLevelDestinationIds, https://developer.android.com/reference/androidx/customview/widget/Openable drawerLayout, @https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Boolean.html> fallbackOnNavigateUpListener )` Configuration options for `https://developer.android.com/reference/androidx/navigation/ui/NavigationUI` methods that interact with implementations of the app bar pattern such as `https://developer.android.com/reference/androidx/appcompat/widget/Toolbar`, `https://developer.android.com/reference/com/google/android/material/appbar/CollapsingToolbarLayout.html`, and `https://developer.android.com/reference/androidx/appcompat/app/ActionBar`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/ui/AppBarConfiguration` | `https://developer.android.com/reference/androidx/navigation/ui/AppBarConfigurationKt#AppBarConfiguration(android.view.Menu,androidx.customview.widget.Openable,kotlin.Function0)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/Menu.html topLevelMenu, https://developer.android.com/reference/androidx/customview/widget/Openable drawerLayout, @https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Boolean.html> fallbackOnNavigateUpListener )` Configuration options for `https://developer.android.com/reference/androidx/navigation/ui/NavigationUI` methods that interact with implementations of the app bar pattern such as `https://developer.android.com/reference/androidx/appcompat/widget/Toolbar`, `https://developer.android.com/reference/com/google/android/material/appbar/CollapsingToolbarLayout.html`, and `https://developer.android.com/reference/androidx/appcompat/app/ActionBar`. |

## Public methods

### AppBarConfiguration

Artifact: [androidx.navigation:navigation-ui](https://developer.android.com/jetpack/androidx/releases/navigation) [View Source](https://cs.android.com/search?q=file:androidx/navigation/ui/AppBarConfiguration.kt+function:AppBarConfiguration) Added in [2.4.0](https://developer.android.com/jetpack/androidx/releases/navigation#2.4.0)

```
public static final @NonNull AppBarConfiguration AppBarConfiguration(
    @NonNull NavGraph navGraph,
    Openable drawerLayout,
    @NonNull Function0<@NonNull Boolean> fallbackOnNavigateUpListener
)
```

Configuration options for `https://developer.android.com/reference/androidx/navigation/ui/NavigationUI` methods that interact with implementations of the app bar pattern such as `https://developer.android.com/reference/androidx/appcompat/widget/Toolbar`, `https://developer.android.com/reference/com/google/android/material/appbar/CollapsingToolbarLayout.html`, and `https://developer.android.com/reference/androidx/appcompat/app/ActionBar`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/NavGraph navGraph` | The `https://developer.android.com/reference/androidx/navigation/NavGraph` whose start destination should be considered the only top level destination. The Up button will not be displayed when on the start destination of the graph. |
| `https://developer.android.com/reference/androidx/customview/widget/Openable drawerLayout` | The Openable layout that should be toggled from the Navigation button. The the Navigation button will show a drawer symbol when it is not being shown as an Up button. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Boolean.html> fallbackOnNavigateUpListener` | Lambda that will be invoked if `https://developer.android.com/reference/androidx/navigation/NavController#navigateUp()` returns `false` |

### AppBarConfiguration

Artifact: [androidx.navigation:navigation-ui](https://developer.android.com/jetpack/androidx/releases/navigation) [View Source](https://cs.android.com/search?q=file:androidx/navigation/ui/AppBarConfiguration.kt+function:AppBarConfiguration) Added in [2.4.0](https://developer.android.com/jetpack/androidx/releases/navigation#2.4.0)

```
public static final @NonNull AppBarConfiguration AppBarConfiguration(
    @NonNull Set<@NonNull Integer> topLevelDestinationIds,
    Openable drawerLayout,
    @NonNull Function0<@NonNull Boolean> fallbackOnNavigateUpListener
)
```

Configuration options for `https://developer.android.com/reference/androidx/navigation/ui/NavigationUI` methods that interact with implementations of the app bar pattern such as `https://developer.android.com/reference/androidx/appcompat/widget/Toolbar`, `https://developer.android.com/reference/com/google/android/material/appbar/CollapsingToolbarLayout.html`, and `https://developer.android.com/reference/androidx/appcompat/app/ActionBar`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Integer.html> topLevelDestinationIds` | The set of destinations by id considered at the top level of your information hierarchy. The Up button will not be displayed when on these destinations. |
| `https://developer.android.com/reference/androidx/customview/widget/Openable drawerLayout` | The Openable layout that should be toggled from the Navigation button. The the Navigation button will show a drawer symbol when it is not being shown as an Up button. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Boolean.html> fallbackOnNavigateUpListener` | Lambda that will be invoked if `https://developer.android.com/reference/androidx/navigation/NavController#navigateUp()` returns `false` |

### AppBarConfiguration

Artifact: [androidx.navigation:navigation-ui](https://developer.android.com/jetpack/androidx/releases/navigation) [View Source](https://cs.android.com/search?q=file:androidx/navigation/ui/AppBarConfiguration.kt+function:AppBarConfiguration) Added in [2.4.0](https://developer.android.com/jetpack/androidx/releases/navigation#2.4.0)

```
public static final @NonNull AppBarConfiguration AppBarConfiguration(
    @NonNull Menu topLevelMenu,
    Openable drawerLayout,
    @NonNull Function0<@NonNull Boolean> fallbackOnNavigateUpListener
)
```

Configuration options for `https://developer.android.com/reference/androidx/navigation/ui/NavigationUI` methods that interact with implementations of the app bar pattern such as `https://developer.android.com/reference/androidx/appcompat/widget/Toolbar`, `https://developer.android.com/reference/com/google/android/material/appbar/CollapsingToolbarLayout.html`, and `https://developer.android.com/reference/androidx/appcompat/app/ActionBar`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/Menu.html topLevelMenu` | A Menu containing MenuItems corresponding with the destinations considered at the top level of your information hierarchy. The Up button will not be displayed when on these destinations. |
| `https://developer.android.com/reference/androidx/customview/widget/Openable drawerLayout` | The Openable layout that should be toggled from the Navigation button. The the Navigation button will show a drawer symbol when it is not being shown as an Up button. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Boolean.html> fallbackOnNavigateUpListener` | Lambda that will be invoked if `https://developer.android.com/reference/androidx/navigation/NavController#navigateUp()` returns `false` |