ui / com.schibsted.account.ui.ui / InputField

InputField

interface InputField : ErrorField

Describes an input field which is entitled to prevent access to its content if it is considered invalid. Implementations should verify their input before potentially providing it.

Inherited Properties

isErrorVisible

abstract var isErrorVisible: Boolean

Checks if an error view is currently displayed

Functions

getInput

abstract fun getInput(): String?

Provides the complete input of this field if valid. Implementations should return null if the input is not valid.

isInputValid

abstract fun isInputValid(): Boolean

Checks if rules are respected for the input to be valid

setImeAction

abstract fun setImeAction(imeOption: Int, editorActionListener: OnEditorActionListener!): Unit

setTextWatcher

abstract fun setTextWatcher(textWatcher: TextWatcher!): Unit

Sets an external textWatcher to interact with the input field.

Inherited Functions

hideErrorView

abstract fun hideErrorView(): Unit

Hides the error message previously displayed

setError

abstract fun setError(message: Int): Unit
abstract fun setError(message: String): Unit

showErrorView

abstract fun showErrorView(): Unit

Displays an error message related to the input field

Inheritors

FieldView

abstract class FieldView : SchibstedView, InputField