Class NavigationScreen
Base class for all navigation screens.
A navigation screen is a VisualElement that can be pushed to a NavHost.
Classes that inherit from this class can be used as template in a NavDestination
with the value of typeof(YourScreenType).AssemblyQualifiedName
.
Implements
Inherited Members
Namespace: Unity.AppUI.Navigation
Assembly: solution.dll
Syntax
public class NavigationScreen : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
Name | Description |
---|---|
NavigationScreen() | Base Constructor. |
Fields
Name | Description |
---|---|
containerUssClassName | The NavigationScreen container styling class. |
ussClassName | The NavigationScreen main styling class. |
withAppBarUssClassName | The NavigationScreen with app bar styling class. |
withCompactAppBarUssClassName | The NavigationScreen with compact app bar styling class. |
Properties
Name | Description |
---|---|
contentContainer | Child elements are added to this element. |
scrollView | The ScrollView that will be used to display the content of the screen. |
Methods
Name | Description |
---|---|
OnEnter(NavController, NavDestination, Argument[]) | Called when the screen is pushed to a NavHost. |
OnExit(NavController, NavDestination, Argument[]) | Called when the screen is popped from a NavHost. |