MenuItemKt
public final class MenuItemKt
Summary
Public methods |
|
|---|---|
static final boolean |
onNavDestinationSelected(Attempt to navigate to the |
Public methods
onNavDestinationSelected
public static final boolean onNavDestinationSelected(
@NonNull MenuItem receiver,
@NonNull NavController navController
)
Attempt to navigate to the androidx.navigation.NavDestination associated with this MenuItem.
Importantly, it assumes the menu item id matches a valid action id or destination id to be navigated to.
By default, the back stack will be popped back to the navigation graph's start destination. Menu items that have android:menuCategory="secondary" will not pop the back stack.
| Returns | |
|---|---|
boolean |
True if the |