ui / com.schibsted.account.ui.login.screen.term / TermsFragment

TermsFragment

class TermsFragment : FlowFragment<TermsContract.Presenter>, TermsContract.View

a Fragment displaying the terms and conditions screen

Constructors

<init>

TermsFragment()

a Fragment displaying the terms and conditions 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

onCreate

fun onCreate(savedInstanceState: Bundle?): Unit

onCreateView

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

onSaveInstanceState

fun onSaveInstanceState(outState: Bundle): Unit

onViewStateRestored

fun onViewStateRestored(savedInstanceState: Bundle?): Unit

requestNavigationToWebView

fun requestNavigationToWebView(link: String): Unit

Request a navigation to a WebFragment to shows terms and policies web page

setPresenter

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

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(uiConfiguration: InternalUiConfiguration, isUserAvailable: Boolean, agreementLinks: AgreementLinksResponse): TermsFragment