目录

Inter-Module Page Routing

If NavDestination of a Navigation-based redirection is in a different HSP package that is not depended on by the main package, you must use NavPushPathHelper for routing because only the main package is downloaded and installed when the atomic service is run for the first time. NavPushPathHelper encapsulates all route APIs of NavPathStack. It holds a NavPathStack object and uses the encapsulated API to determine whether an HSP package exists. If not, it dynamically downloads the package. After obtaining the result, it calls the corresponding API of NavPathStack to add the specified NavDestination to the stack.

Other Page Operations

Use the corresponding NavPathStack methods directly to handle page routing operations within a sub-package, including page return, replace, delete, parameter fetching, and routing interception. For details, see APIs.