# NavControllerKt

Added in 2.4.0

*** ** * ** ***


```
public final class NavControllerKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final boolean` | `https://developer.android.com/reference/androidx/navigation/ui/NavControllerKt#(androidx.navigation.NavController).navigateUp(androidx.navigation.ui.AppBarConfiguration)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/NavController receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/ui/AppBarConfiguration appBarConfiguration )` Handles the Up button by delegating its behavior to the given `https://developer.android.com/reference/androidx/navigation/NavController`. |
| `static final boolean` | `https://developer.android.com/reference/androidx/navigation/ui/NavControllerKt#(androidx.navigation.NavController).navigateUp(androidx.customview.widget.Openable)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/navigation/NavController receiver, https://developer.android.com/reference/androidx/customview/widget/Openable drawerLayout)` Handles the Up button by delegating its behavior to the given `https://developer.android.com/reference/androidx/navigation/NavController`. |

## Public methods

### navigateUp

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/NavController.kt+function:navigateUp) Added in [2.4.0](https://developer.android.com/jetpack/androidx/releases/navigation#2.4.0)

```
public static final boolean navigateUp(
    @NonNull NavController receiver,
    @NonNull AppBarConfiguration appBarConfiguration
)
```

Handles the Up button by delegating its behavior to the given `https://developer.android.com/reference/androidx/navigation/NavController`.

| Returns |
|---|---|
| `boolean` | True if the `https://developer.android.com/reference/androidx/navigation/NavController` was able to navigate up. |

### navigateUp

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/NavController.kt+function:navigateUp) Added in [2.4.0](https://developer.android.com/jetpack/androidx/releases/navigation#2.4.0)

```
public static final boolean navigateUp(@NonNull NavController receiver, Openable drawerLayout)
```

Handles the Up button by delegating its behavior to the given `https://developer.android.com/reference/androidx/navigation/NavController`.

This is equivalent to calling `https://developer.android.com/reference/androidx/navigation/NavController#navigateUp()` if the `https://developer.android.com/reference/androidx/customview/widget/Openable` layout is null.

| Returns |
|---|---|
| `boolean` | True if the `https://developer.android.com/reference/androidx/navigation/NavController` was able to navigate up. |