ui / com.schibsted.account.ui.login.screen.onesteplogin / OneStepLoginFragment

OneStepLoginFragment

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

a Fragment displaying the one step login screen

Constructors

<init>

OneStepLoginFragment()

a Fragment displaying the one step login 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

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

identifyUser

fun identifyUser(inputField: InputField, trackingScreen: Screen, callback: () -> Unit): Unit

onCreate

fun onCreate(savedInstanceState: Bundle?): Unit

onCreateView

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

onResume

fun onResume(): Unit

onSaveInstanceState

fun onSaveInstanceState(outState: Bundle): Unit

onStart

fun onStart(): Unit

onViewCreated

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

setPresenter

fun setPresenter(presenter: OneStepLoginContract.Presenter): Unit

ties a presenter to this 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 Properties

KEY_CLIENT_INFO

const val KEY_CLIENT_INFO: String

Companion Object Functions

newInstance

fun newInstance(uiConfiguration: InternalUiConfiguration, clientInfo: ClientInfo): OneStepLoginFragment

provide a new instance of this Fragment