ui / com.schibsted.account.ui.login.screen.information / RequiredFieldsFragment

RequiredFieldsFragment

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

Constructors

<init>

RequiredFieldsFragment()

Properties

isActive

val isActive: Boolean

Return the state of the fragment, this method should be use to know if an UI update could be performed. Call this method before every intention of UI update

missingField

lateinit var missingField: Set<String>

Inherited Properties

primaryActionView

lateinit var primaryActionView: LoadingButton

a Button allowing the user to continue his path

secondaryActionView

var secondaryActionView: Button?

uiConf

lateinit var uiConf: InternalUiConfiguration

Functions

hideErrors

fun hideErrors(): Unit

onCreateView

fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?

onViewCreated

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

setPresenter

fun setPresenter(presenter: RequiredFieldsContract.Presenter): Unit

Ties a Presenter to a view

showErrorDialog

fun showErrorDialog(error: ClientError, errorMessage: String?): Unit

Inherited 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

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

Companion Object Properties

INFORMATION_FIELD_MARGIN_BOTTOM

const val INFORMATION_FIELD_MARGIN_BOTTOM: Float

Companion Object Functions

newInstance

fun newInstance(uiConfiguration: InternalUiConfiguration): RequiredFieldsFragment