NavControllerKt

public final class NavControllerKt


Summary

Public methods

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

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

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

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

Public methods

navigateUp

@NonNull
public static final boolean navigateUp(
    @NonNull NavController receiver,
    @Nullable 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.

navigateUp

@NonNull
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.