io.paymenthighway.sdk.ui / CardNumberEditText

CardNumberEditText

class CardNumberEditText : EditText

Specialized text field for collecting credit number.

Constructors

<init>

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

TextInputEditText constructor

Inherited 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

Inherited 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