Class NavController
The NavController manages navigation within a NavHost. It is responsible for keeping track of the navigation stack and the current destination.
Inherited Members
Namespace: Unity.AppUI.Navigation
Assembly: solution.dll
Syntax
public class NavController
  Constructors
| Name | Description | 
|---|---|
| NavController(NavHost) | Default constructor.  | 
      
Properties
| Name | Description | 
|---|---|
| canGoBack | Returns true if there is a destination on the back stack that can be popped.  | 
      
| currentBackStackEntry | The last entry on the back stack.  | 
      
| currentDestination | The current destination.  | 
      
| graph | The current graph.  | 
      
| graphAsset | The used graph asset.  | 
      
Methods
| Name | Description | 
|---|---|
| ClearBackStack() | Clear the back stack entirely.  | 
      
| Navigate(string, params Argument[]) | Navigate to the destination with the given name.  | 
      
| Navigate(string, NavOptions, params Argument[]) | Navigate to the destination with the given name.  | 
      
| Navigate(Uri, NavOptions) | Navigate to the destination with the given DeepLink.  | 
      
| PopBackStack() | Pop the current destination from the back stack and navigate to the previous destination.  | 
      
| PopBackStack(string, bool, bool) | Pop the current destination from the back stack and navigate to the given destination.  | 
      
| SetGraph(NavGraphViewAsset) | Set the Navigation Graph asset that will be used as navigation definition.  | 
      
Events
| Name | Description | 
|---|---|
| actionTriggered | Event that is invoked when an action is triggered.  | 
      
| destinationChanged | Event that is invoked when the current destination changes.  |