ui / com.schibsted.account.ui.login.screen.identification.ui / AbstractIdentificationFragment

AbstractIdentificationFragment

abstract class AbstractIdentificationFragment : FlowFragment<IdentificationContract.Presenter>, IdentificationContract.View

Abstract class containing the common logic and ui for the identification process

See Also

MobileIdentificationFragment

EmailIdentificationFragment

Constructors

<init>

AbstractIdentificationFragment()

Abstract class containing the common logic and ui for the identification process

Properties

inputViewContainer

lateinit var inputViewContainer: FrameLayout

this reference is used to add a child view in extended class

isActive

open 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): Unit

isTeaserEnabled

fun isTeaserEnabled(): Boolean

onCreate

open fun onCreate(savedInstanceState: Bundle?): Unit

onCreateView

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

onSaveInstanceState

open fun onSaveInstanceState(outState: Bundle): Unit

prefillIdentifier

abstract fun prefillIdentifier(identifier: String?): Unit

setPresenter

open fun setPresenter(presenter: IdentificationContract.Presenter): Unit

ties a presenter to this view

showErrorDialog

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

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 Properties

KEY_CLIENT_INFO

const val KEY_CLIENT_INFO: String

Inheritors

EmailIdentificationFragment

class EmailIdentificationFragment : AbstractIdentificationFragment, IdentificationContract.View

a Fragment displaying the email identification screen

MobileIdentificationFragment

class MobileIdentificationFragment : AbstractIdentificationFragment

a Fragment displaying the phone number identification screen