Method OnNavigationCompleted
OnNavigationCompleted(NavigationType, NavigatorRoute, NavigationResult, object?)
Called when a navigation completes, either successfully or due to cancellation. This is always called if OnNavigationStarting(NavigationType, NavigatorRoute) was called for the same navigation.
Declaration
protected virtual void OnNavigationCompleted(NavigationType navigationType, NavigatorRoute targetRoute, NavigationResult result, object? state)
Parameters
| Type | Name | Description |
|---|---|---|
| NavigationType | navigationType | The type of navigation that completed. |
| NavigatorRoute | targetRoute | The route that the navigation was targeting (the same value passed to OnNavigationStarting(NavigationType, NavigatorRoute)). |
| NavigationResult | result | The result of the navigation. |
| object | state | The state object returned from OnNavigationStarting(NavigationType, NavigatorRoute) for this navigation. |