Retrieves the current page stack. The first element in the array is the homepage, and the last element is the current page.
Notes
- Do not attempt to modify the page stack, as it will cause routing and page state errors.
- Do not call
getCurrentPages()duringApp.onLaunch, as thepagehas not yet been created.