Interface INavVisualController
Interface for a navigation visual controller. A navigation visual controller is responsible for setting up the visual elements of a navigation graph. This includes the bottom navigation bar, the app bar, the drawer and the navigation rail.
Namespace: Unity.AppUI.Navigation
Assembly: Unity.AppUI.Navigation.dll
Syntax
public interface INavVisualController
Methods
SetupAppBar(AppBar, NavDestination, NavController)
Setup the app bar.
Declaration
void SetupAppBar(AppBar appBar, NavDestination destination, NavController navController)
Parameters
Type | Name | Description |
---|---|---|
AppBar | appBar | The app bar to setup. |
NavDestination | destination | The destination to setup the app bar for. |
NavController | navController | The navigation controller. |
SetupBottomNavBar(BottomNavBar, NavDestination, NavController)
Setup the bottom navigation bar.
Declaration
void SetupBottomNavBar(BottomNavBar bottomNavBar, NavDestination destination, NavController navController)
Parameters
Type | Name | Description |
---|---|---|
BottomNavBar | bottomNavBar | The bottom navigation bar to setup. |
NavDestination | destination | The destination to setup the bottom navigation bar for. |
NavController | navController | The navigation controller. |
SetupDrawer(Drawer, NavDestination, NavController)
Setup the drawer.
Declaration
void SetupDrawer(Drawer drawer, NavDestination destination, NavController navController)
Parameters
Type | Name | Description |
---|---|---|
Drawer | drawer | The drawer to setup. |
NavDestination | destination | The destination to setup the drawer for. |
NavController | navController | The navigation controller. |
SetupNavigationRail(NavigationRail, NavDestination, NavController)
Setup the navigation rail.
Declaration
void SetupNavigationRail(NavigationRail navigationRail, NavDestination destination, NavController navController)
Parameters
Type | Name | Description |
---|---|---|
NavigationRail | navigationRail | The navigation rail to setup. |
NavDestination | destination | The destination to setup the navigation rail for. |
NavController | navController | The navigation controller. |