NavControllerKt

Added in 1.0.0

public final class NavControllerKt


Summary

Public methods

static final boolean
navigateUp(
    @NonNull <Error class: unknown class> receiver,
    @NonNull AppBarConfiguration appBarConfiguration
)

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

static final boolean
navigateUp(
    @NonNull <Error class: unknown class> receiver,
    Openable drawerLayout
)

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

Public methods

public static final boolean navigateUp(
    @NonNull <Error class: unknown class> 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.

public static final boolean navigateUp(
    @NonNull <Error class: unknown class> 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.