ui / com.schibsted.account.ui.navigation / Navigation

Navigation

class Navigation : OnBackStackChangedListener

Base navigation controller defining common method to navigate through screens every and each controller should extend it.

Constructors

<init>

Navigation(activity: BaseLoginActivity, navigationListener: NavigationListener)

Base navigation controller defining common method to navigate through screens every and each controller should extend it.

Properties

currentFragment

var currentFragment: BaseFragment?

the currently displayed fragment

Functions

dismissDialog

fun dismissDialog(allowStateLoss: Boolean = false): Unit

finishFlow

fun finishFlow(user: User): Unit

finishNavigation

fun finishNavigation(): Unit

used to finish the current flow

handleBackPressed

fun <T : Contract<*>, C : Controller<T>> handleBackPressed(controller: C?, contract: T): Unit

navigateBackTo

fun navigateBackTo(screen: LoginScreen): Unit

navigateToFragment

fun <F : BaseFragment> navigateToFragment(fragment: F): Unit

navigateToWebView

fun navigateToWebView(what: WebFragment, loginScreen: LoginScreen): Unit

navigationToDialog

fun navigationToDialog(dialogFragment: DialogFragment): Unit

used to navigate to the given information dialog fragment

onBackStackChanged

fun onBackStackChanged(): Unit

called when a navigation back was performed in order to update the current fragment reference

register

fun register(listener: NavigationListener): Unit?

unregister

fun unregister(): Unit?