addTextWatcher
fun EditText.addTextWatcher(afterTextChanged: (text: Editable?) -> Unit = { _ -> }, beforeTextChanged: (text: CharSequence?, start: Int, count: Int, after: Int) -> Unit = { _, _, _, _ -> }, onTextChanged: (text: CharSequence?, start: Int, before: Int, count: Int) -> Unit = { _, _, _, _ -> }): TextWatcher
Accepts 3 text watcher methods with a default empty implementation.
Return
The TextWatcher
being added to EditText