ui / com.schibsted.account.ui.login.screen.verification / VerificationFragment

VerificationFragment

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

a Fragment displaying the code verification screen

Constructors

<init>

VerificationFragment()

a Fragment displaying the code verification screen

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

isRememberMeEnabled

val isRememberMeEnabled: Boolean

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

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

setPasswordlessController

fun setPasswordlessController(passwordlessController: PasswordlessController): Unit

setPresenter

fun setPresenter(presenter: VerificationContract.Presenter): Unit

set the presenter of this view

showErrorDialog

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

showResendCodeView

fun showResendCodeView(): Unit

Builds an InformationDialogFragment an ask the .navigationListener to show it. The InformationDialogFragment inform the user that the code was successfully resent

Inherited Functions

hideProgress

open fun hideProgress(): Unit

allow the user to click on the .primaryActionView

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

Companion Object Functions

newInstance

fun newInstance(identifier: Identifier): VerificationFragment

provide a new instance of this Fragment