ui / com.schibsted.account.ui.ui / FlowFragment

FlowFragment

abstract class FlowFragment<in T> : BaseFragment, KeyboardVisibilityListener, FlowView<T>

a Fragment used to represents a part of a UI flow, as such, this fragment can continue a flow. the flow could be continue thanks to the keyboard or a button.

Constructors

<init>

FlowFragment()

a Fragment used to represents a part of a UI flow, as such, this fragment can continue a flow. the flow could be continue thanks to the keyboard or a button.

Properties

primaryActionView

lateinit var primaryActionView: LoadingButton

a Button allowing the user to continue his path

secondaryActionView

var secondaryActionView: Button?

uiConf

lateinit var uiConf: InternalUiConfiguration

Inherited Properties

keyboardListener

var keyboardListener: KeyboardListener?

The keyboard manager allowing to interact with the state of the soft keyboard

navigationListener

var navigationListener: NavigationListener?

the navigation controller used to request a navigation

Functions

hideProgress

open fun hideProgress(): Unit

allow the user to click on the .primaryActionView

onCreate

open fun onCreate(savedInstanceState: Bundle?): Unit

onSaveInstanceState

open fun onSaveInstanceState(outState: Bundle): Unit

onViewCreated

open fun onViewCreated(view: View, savedInstanceState: Bundle?): Unit

onVisibilityChanged

open fun onVisibilityChanged(isOpen: Boolean): Unit

This method is called when the soft keyboard has pop down or pop up.

showProgress

open fun showProgress(): Unit

prevent the user to click on the .primaryActionView

Inherited Functions

displayErrorDialog

fun displayErrorDialog(error: ClientError, errorMessage: String? = null): Unit

hideError

open fun hideError(errorField: ErrorField): Unit

Hides a previously shown error

onAnimationEnd

open fun onAnimationEnd(animation: Animation?): Unit

onAnimationRepeat

open fun onAnimationRepeat(animation: Animation?): Unit

onAnimationStart

open fun onAnimationStart(animation: Animation?): Unit

onCreateAnimation

open fun onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int): Animation

registerKeyboardController

fun registerKeyboardController(keyboardListener: KeyboardListener): Unit

registerNavigationController

fun registerNavigationController(navigationListener: NavigationListener): Unit

this method is used to register the navigation controller

showError

open fun showError(errorField: ErrorField): Unit

Shows a contextual error related to the user's actions

unregisterKeyboardController

fun unregisterKeyboardController(): Unit

unregisterNavigationController

fun unregisterNavigationController(): Unit

free the reference to the navigation controller

Companion Object Properties

KEY_UI_CONF

const val KEY_UI_CONF: String

Inheritors

AbstractIdentificationFragment

abstract class AbstractIdentificationFragment : FlowFragment<IdentificationContract.Presenter>, IdentificationContract.View

Abstract class containing the common logic and ui for the identification process

OneStepLoginFragment

class OneStepLoginFragment : FlowFragment<OneStepLoginContract.Presenter>, OneStepLoginContract.View

a Fragment displaying the one step login screen

PasswordFragment

class PasswordFragment : FlowFragment<PasswordContract.Presenter>, PasswordContract.View, AccountSelectorView.Listener

RequiredFieldsFragment

class RequiredFieldsFragment : FlowFragment<RequiredFieldsContract.Presenter>, RequiredFieldsContract.View

TermsFragment

class TermsFragment : FlowFragment<TermsContract.Presenter>, TermsContract.View

a Fragment displaying the terms and conditions screen

VerificationFragment

class VerificationFragment : FlowFragment<VerificationContract.Presenter>, VerificationContract.View, AccountSelectorView.Listener

a Fragment displaying the code verification screen