Class NavigationScreen
Base class for all navigation screens.
A navigation screen is a Visualtypeof(YourScreenType).AssemblyQualifiedName
.
Implements
Inherited Members
Namespace: Unity.AppUI.Navigation
Assembly: Unity.AppUI.Navigation.dll
Syntax
public class NavigationScreen : VisualElement, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, IResolvedStyle
Constructors
NavigationScreen()
Base Constructor.
Declaration
public NavigationScreen()
Fields
containerUssClassName
The NavigationScreen container styling class.
Declaration
public const string containerUssClassName = "appui-navigation-screen__container"
Field Value
Type | Description |
---|---|
string |
ussClassName
The NavigationScreen main styling class.
Declaration
public const string ussClassName = "appui-navigation-screen"
Field Value
Type | Description |
---|---|
string |
withAppBarUssClassName
The NavigationScreen with app bar styling class.
Declaration
public const string withAppBarUssClassName = "appui-navigation-screen--with-appbar"
Field Value
Type | Description |
---|---|
string |
withCompactAppBarUssClassName
The NavigationScreen with compact app bar styling class.
Declaration
public const string withCompactAppBarUssClassName = "appui-navigation-screen--with-appbar--compact"
Field Value
Type | Description |
---|---|
string |
withDrawerUssClassName
The NavigationScreen with drawer styling class.
Declaration
public const string withDrawerUssClassName = "appui-navigation-screen--with-drawer--"
Field Value
Type | Description |
---|---|
string |
withRailUssClassName
The NavigationScreen with rail styling class.
Declaration
public const string withRailUssClassName = "appui-navigation-screen--with-rail--"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
Child elements are added to this element.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
Visual |
Overrides
scrollView
The Scroll
Declaration
public ScrollView scrollView { get; }
Property Value
Type | Description |
---|---|
Scroll |
Methods
OnEnter(NavController, NavDestination, Argument[])
Called when the screen is pushed to a Nav
Declaration
protected virtual void OnEnter(NavController controller, NavDestination destination, Argument[] args)
Parameters
Type | Name | Description |
---|---|---|
Nav |
controller | The Nav |
Nav |
destination | The Nav |
Argument[] | args | The arguments associated with this screen. |
OnExit(NavController, NavDestination, Argument[])
Called when the screen is popped from a Nav
Declaration
protected virtual void OnExit(NavController controller, NavDestination destination, Argument[] args)
Parameters
Type | Name | Description |
---|---|---|
Nav |
controller | The Nav |
Nav |
destination | The Nav |
Argument[] | args | The arguments associated with this screen. |
Remarks
This method is called before the screen is removed from the Nav
SetupAppBar(AppBar)
Implement this method to setup the App
Declaration
protected virtual void SetupAppBar(AppBar appBar)
Parameters
Remarks
To setup the App
SetupBottomNavBar(BottomNavBar)
Implement this method to setup the Bottom
Declaration
protected virtual void SetupBottomNavBar(BottomNavBar bottomNavBar)
Parameters
Type | Name | Description |
---|---|---|
Bottom |
bottomNavBar | The Bottom |
Remarks
To setup the Bottom
SetupDrawer(Drawer)
Implement this method to setup the Drawer of this screen specifically.
Declaration
protected virtual void SetupDrawer(Drawer drawer)
Parameters
Remarks
To setup the Drawer globally, use Setup
SetupNavigationRail(NavigationRail)
Implement this method to setup the Navigation
Declaration
protected virtual void SetupNavigationRail(NavigationRail navigationRail)
Parameters
Type | Name | Description |
---|---|---|
Navigation |
navigationRail | The Navigation |