Documentation

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 as app.navigate() for convenience.

Parameters

Related