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.
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. |
lateinit var primaryActionView: LoadingButton
a Button allowing the user to continue his path |
|
var secondaryActionView: Button? |
|
lateinit var uiConf: InternalUiConfiguration |
var keyboardListener: KeyboardListener?
The keyboard manager allowing to interact with the state of the soft keyboard |
|
var navigationListener: NavigationListener?
the navigation controller used to request a navigation |
open fun hideProgress(): Unit
allow the user to click on the .primaryActionView |
|
open fun onCreate(savedInstanceState: Bundle?): Unit |
|
open fun onSaveInstanceState(outState: Bundle): Unit |
|
open fun onViewCreated(view: View, savedInstanceState: Bundle?): Unit |
|
open fun onVisibilityChanged(isOpen: Boolean): Unit
This method is called when the soft keyboard has pop down or pop up. |
|
open fun showProgress(): Unit
prevent the user to click on the .primaryActionView |
fun displayErrorDialog(error: ClientError, errorMessage: String? = null): Unit |
|
open fun hideError(errorField: ErrorField): Unit
Hides a previously shown error |
|
open fun onAnimationEnd(animation: Animation?): Unit |
|
open fun onAnimationRepeat(animation: Animation?): Unit |
|
open fun onAnimationStart(animation: Animation?): Unit |
|
open fun onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int): Animation |
|
fun registerKeyboardController(keyboardListener: KeyboardListener): Unit |
|
fun registerNavigationController(: NavigationListener): Unit
this method is used to register the navigation controller |
|
open fun showError(errorField: ErrorField): Unit
Shows a contextual error related to the user's actions |
|
fun unregisterKeyboardController(): Unit |
|
fun unregisterNavigationController(): Unit
free the reference to the navigation controller |
const val KEY_UI_CONF: String |
abstract class AbstractIdentificationFragment : FlowFragment<IdentificationContract.Presenter>, IdentificationContract.View
Abstract class containing the common logic and ui for the identification process |
|
class OneStepLoginFragment : FlowFragment<OneStepLoginContract.Presenter>, OneStepLoginContract.View
a Fragment displaying the one step login screen |
|
class PasswordFragment : FlowFragment<PasswordContract.Presenter>, PasswordContract.View, AccountSelectorView.Listener |
|
class RequiredFieldsFragment : FlowFragment<RequiredFieldsContract.Presenter>, RequiredFieldsContract.View |
|
class TermsFragment : FlowFragment<TermsContract.Presenter>, TermsContract.View
a Fragment displaying the terms and conditions screen |
|
class VerificationFragment : FlowFragment<VerificationContract.Presenter>, VerificationContract.View, AccountSelectorView.Listener
a Fragment displaying the code verification screen |