Class NavHost
The NavHost is the UI element that manages the navigation stack.
It will manage the display of Navigation
Implements
Inherited Members
Namespace: Unity.AppUI.Navigation
Assembly: Unity.AppUI.Navigation.dll
Syntax
public class NavHost : VisualElement, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, IResolvedStyle
Constructors
NavHost()
Default constructor.
Declaration
public NavHost()
Fields
containerUssClassName
The NavHost container styling class.
Declaration
public const string containerUssClassName = "appui-navhost__container"
Field Value
Type | Description |
---|---|
string |
itemContainerUssClassName
The NavHost item container styling class.
Declaration
public const string itemContainerUssClassName = "appui-navhost__item__container"
Field Value
Type | Description |
---|---|
string |
itemUssClassName
The NavHost item styling class.
Declaration
public const string itemUssClassName = "appui-navhost__item"
Field Value
Type | Description |
---|---|
string |
ussClassName
The NavHost main styling class.
Declaration
public const string ussClassName = "appui-navhost"
Field Value
Type | Description |
---|---|
string |
withRailUssClassName
The NavHost item with rail styling class.
Declaration
public const string withRailUssClassName = "appui-navhost__item--with-rail--"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The container that will hold the current Navigation
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
Visual |
Overrides
makeScreen
Method called to create a new instance of a Navigation
Declaration
public Func<Type, NavigationScreen> makeScreen { get; set; }
Property Value
Type | Description |
---|---|
Func<Type, Navigation |
navController
The controller that manages the navigation stack.
Declaration
public NavController navController { get; }
Property Value
Type | Description |
---|---|
Nav |
visualController
The visual controller that will be used to handle modification of Navigation visual elements, such as BottomNavBar.
Declaration
public INavVisualController visualController { get; set; }
Property Value
Type | Description |
---|---|
INav |