Package ej.navigation

Interface NavigationListener

    • Method Detail

      • onNavigation

        void onNavigation​(@Nullable
                          Page exitedPage,
                          Page enteredPage)
        Notifies that the active page has changed from exitedPage to enteredPage.

        Fires once per navigation. On the first navigation no page is exited, so exitedPage is null; on every navigation thereafter it is the page that was active before.

        Parameters:
        exitedPage - the page that was active before, or null when the entered page is the first page ever shown.
        enteredPage - the page that is now active.