ui / com.schibsted.account.ui.ui.component / PhoneInputView

PhoneInputView

class PhoneInputView : FieldView

View use for phone number input

Constructors

<init>

PhoneInputView(context: Context?, attrs: AttributeSet? = null)

View use for phone number input

Properties

mobileNumberView

val mobileNumberView: SingleFieldView

Inherited Properties

validationRule

lateinit var validationRule: ValidationRule

Functions

getInput

fun getInput(): String?

Provides the input

hideErrorView

fun hideErrorView(): Unit

isInputValid

fun isInputValid(): Boolean

Verifies if the input is a valid. To be valid the input should not be empty, should only contain digits after the first character, and should not be equal to the default prefix provided by the client.

reset

fun reset(): Unit

setError

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

setImeAction

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

setPhoneNumber

fun setPhoneNumber(phoneNumber: String): Unit

setTextWatcher

fun setTextWatcher(textWatcher: TextWatcher): Unit

showErrorView

fun showErrorView(): Unit