Enables navigation for a new UI instance. This initializes the UI content
based on the location used for loading the UI and sets up the UI to be
updated when the user navigates to some other location.
This method just shows the given location on the page and doesn't
update the browser location (and page history). Use the
UI.navigate(String, QueryParameters) method if you want to update
the browser location as well.
Parameters:
ui - the UI to update, not null
location - the location to navigate to, not null
trigger - the type of user action that triggered this navigation, not
null
Returns:
the HTTP status code resulting from the navigation
trigger - the type of user action that triggered this navigation, not
null
state - includes navigation state info including for example the
scroll position and the complete href of the RouterLink
forceInstantiation - if set to true, the navigation target will always be
instantiated
recreateLayoutChain - if set to true, the complete layout chain up to the
navigation target will be re-instantiated. Requires
forceInstantiation to be true to have an effect.
Returns:
the HTTP status code resulting from the navigation
trigger - the type of user action that triggered this navigation, not
null
state - includes navigation state info including for example the
scroll position and the complete href of the RouterLink
forceInstantiation - if set to true, the navigation target will always be
instantiated
recreateLayoutChain - if set to true, the complete layout chain up to the
navigation target will be re-instantiated. Requires
forceInstantiation to be true to have an effect.
Returns:
the HTTP status code resulting from the navigation