ui / com.schibsted.account.ui.login.screen.password / PasswordFragment

PasswordFragment

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

Constructors

<init>

PasswordFragment()

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

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

isRememberMeEnabled

fun isRememberMeEnabled(): <ERROR CLASS>

onCreate

fun onCreate(savedInstanceState: Bundle?): Unit

onCreateView

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

onDialogRequested

fun onDialogRequested(selectorDialog: SelectorDialog): Unit

onSaveInstanceState

fun onSaveInstanceState(outState: Bundle): Unit

onViewCreated

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

setPresenter

fun setPresenter(presenter: PasswordContract.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

onVisibilityChanged

open fun onVisibilityChanged(isOpen: Boolean): Unit

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

showError

open fun showError(errorField: ErrorField, errorMes: Int): Unit

Shows a contextual error related to the user's actions

showProgress

open fun showProgress(): Unit

prevent the user to click on the .primaryActionView

Companion Object Functions

newInstance

fun newInstance(identifier: Identifier, isUserAvailable: Boolean, uiConfiguration: InternalUiConfiguration): PasswordFragment