class Navigation : OnBackStackChangedListener
Base navigation controller defining common method to navigate through screens every and each controller should extend it.
Navigation(: BaseLoginActivity, : NavigationListener)
Base navigation controller defining common method to navigate through screens every and each controller should extend it. |
var currentFragment: BaseFragment?
the currently displayed fragment |
fun dismissDialog(: Boolean = false): Unit |
|
fun finishFlow(: User): Unit |
|
fun finishNavigation(): Unit
used to finish the current flow |
|
fun <T : Contract<*>, C : Controller<T>> handleBackPressed(: C?, : T): Unit |
|
fun navigateBackTo(: LoginScreen): Unit |
|
fun <F : BaseFragment> navigateToFragment(: F): Unit |
|
fun navigateToWebView(: WebFragment, : LoginScreen): Unit |
|
fun navigationToDialog(: DialogFragment): Unit
used to navigate to the given information dialog fragment |
|
fun onBackStackChanged(): Unit
called when a navigation back was performed in order to update the current fragment reference |
|
fun register(: NavigationListener): Unit? |
|
fun unregister(): Unit? |