Class NavHost
The NavHost is the UI element that manages the navigation stack. It will manage the display of NavigationScreen objects through its NavController.
Implements
Inherited Members
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.Navigation
Assembly: solution.dll
Syntax
public class NavHost : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
NavHost()
Default constructor.
Declaration
public NavHost()
Fields
containerUssClassName
The NavHost container styling class.
Declaration
public static readonly string containerUssClassName
Field Value
Type | Description |
---|---|
string |
itemUssClassName
The NavHost item styling class.
Declaration
public static readonly string itemUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The NavHost main styling class.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The container that will hold the current NavigationScreen.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
navController
The controller that manages the navigation stack.
Declaration
public NavController navController { get; }
Property Value
Type | Description |
---|---|
NavController |
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 |
---|---|
INavVisualController |