Page Routing
The FMC chooses what page to display based on it's routing. Routing within the FMC framework can be thought of similarly to web page routing, where a URL has a given subdirectory, which the webserver then uses to select the page being returned.
Page routing is handled by the FmcRouter class of the FmcScreen.
Registering page routes
Registering a page route is described in Creating Your First Page.
Navigating between pages
To navigate between pages, you can use the function FmcScreen::navigateTo(route, params), where route is the string route for the given page, and params is a Record<string, any> which is fed to the page through the page's params variable with type Map<string, any>.
Alternatively, if you wish to display a page based on an event being fired (such as if a menu button is pressed physically), you can provide the event name as a parameter while registering the page route, as described in the above section.