TextViewKt
public final class TextViewKt
Summary
Public methods |
|
|---|---|
static final @NonNull TextWatcher |
addTextChangedListener(Add a text changed listener to this TextView using the provided actions |
static final @NonNull TextWatcher |
Add an action which will be invoked after the text changed. |
static final @NonNull TextWatcher |
doBeforeTextChanged(Add an action which will be invoked before the text changed. |
static final @NonNull TextWatcher |
doOnTextChanged(Add an action which will be invoked when the text is changing. |
Public methods
addTextChangedListener
public static final @NonNull TextWatcher addTextChangedListener(
@NonNull TextView receiver,
@NonNull Function4<CharSequence, @NonNull Integer, @NonNull Integer, @NonNull Integer, Unit> beforeTextChanged,
@NonNull Function4<CharSequence, @NonNull Integer, @NonNull Integer, @NonNull Integer, Unit> onTextChanged,
@NonNull Function1<Editable, Unit> afterTextChanged
)
Add a text changed listener to this TextView using the provided actions
| Returns | |
|---|---|
@NonNull TextWatcher |
the |
doAfterTextChanged
public static final @NonNull TextWatcher doAfterTextChanged(
@NonNull TextView receiver,
@NonNull Function1<Editable, Unit> action
)
Add an action which will be invoked after the text changed.
| Returns | |
|---|---|
@NonNull TextWatcher |
the |
doBeforeTextChanged
public static final @NonNull TextWatcher doBeforeTextChanged(
@NonNull TextView receiver,
@NonNull Function4<CharSequence, @NonNull Integer, @NonNull Integer, @NonNull Integer, Unit> action
)
Add an action which will be invoked before the text changed.
| Returns | |
|---|---|
@NonNull TextWatcher |
the |
doOnTextChanged
public static final @NonNull TextWatcher doOnTextChanged(
@NonNull TextView receiver,
@NonNull Function4<CharSequence, @NonNull Integer, @NonNull Integer, @NonNull Integer, Unit> action
)
Add an action which will be invoked when the text is changing.
| Returns | |
|---|---|
@NonNull TextWatcher |
the |