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