class CodeInputView : FieldView, OnClickListener, CustomEditText.KeyEventListener, OnLongClickListener
Widget made to allow the user to enter a 6 digits code
CodeInputView(context: Context, attrs: AttributeSet? = null)
Widget made to allow the user to enter a 6 digits code |
lateinit var validationRule: ValidationRule |
fun getInput(): String?
Return the current input |
|
fun hideErrorView(): Unit
Hides error message and call .resetFields |
|
fun isInputValid(): Boolean
Checks if the code returned by .getFullInput matches requirement |
|
fun onClick(view: View): Unit
Calls .hideErrorView if .isErrorVisible return true |
|
fun onDeleteKeyPressed(): Unit |
|
fun onLongClick(v: View?): Boolean |
|
fun setImeAction(imeOption: Int, editorActionListener: OnEditorActionListener): Unit |
|
fun setTextWatcher(textWatcher: TextWatcher): Unit
Sets a TextWatcher to .inputViews's EditText |
|
fun showErrorView(): Unit
Shows the error message and apply a red color filter to .inputViews's EditText |
const val EXPECTED_LENGTH: Int |