io.paymenthighway.sdk.ui / EditText

EditText

open class EditText : TextInputEditText

Base class for the Payment Highway text input ui items

Constructors

<init>

EditText(context: Context?)
EditText(context: Context?, attrs: AttributeSet?)
EditText(context: Context?, attrs: AttributeSet?, defStyleAttr: Int)

TextInputEditText constructor

Properties

editTextValidationListener

var editTextValidationListener: ValidationListener?

Listener for validation state change

errorText

var errorText: String?

Text message shown in case of error

format

var format: (String) -> String

Text formatter

hintText

var hintText: String?

Hint text

isValid

var isValid: Boolean

Return True if the field is valid

textLayout

var textLayout: TextInputLayout?

Parent TextInputLayout

validate

var validate: (String) -> Boolean

Text validation

Functions

onFocusChanged

open fun onFocusChanged(focused: Boolean, direction: Int, previouslyFocusedRect: Rect?): Unit

When the focus change can be set either the hint text either the error

Inheritors

CardNumberEditText

class CardNumberEditText : EditText

Specialized text field for collecting credit number.

ExpiryDateEditText

class ExpiryDateEditText : EditText

Specialized text field for collecting expiration date.

SecurityCodeEditText

class SecurityCodeEditText : EditText

Specialized text field for collecting security code.