navigateAsync()
Navigates to the specified path.
abstract navigateAsync(
target?: StringConvertible,
mode?: NavigationContext.NavigationMode,
): Promise<void>;
Summary
When implemented by a platform-specific (or test) implementation, this method sets the navigation path to the provided target. Different navigation modes allow for the path to be added to the history stack, to replace the current path if possible, or to navigate back before adding or replacing the path.
Note
This method is used by AppContext.navigate(), which is available asapp.navigate()for convenience.
Parameters
- target — The target path, if any
- mode — The navigation mode, an object of type NavigationContext.NavigationMode
Related
class NavigationContext abstract
An abstract class that encapsulates the current location within the application navigation stack, part of the global application context.
