NavControllerKt

Added in 1.0.0

public final class NavControllerKt


Summary

Public methods

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

Handles the Up button by delegating its behavior to the given NavController.

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

Handles the Up button by delegating its behavior to the given NavController.

Public methods

navigateUp

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

Handles the Up button by delegating its behavior to the given NavController.

Returns
boolean

True if the NavController was able to navigate up.

navigateUp

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

Handles the Up button by delegating its behavior to the given NavController.

This is equivalent to calling NavController.navigateUp if the Openable layout is null.

Returns
boolean

True if the NavController was able to navigate up.