TextViewKt

public final class TextViewKt


Summary

Public methods

static final @NonNull TextWatcher
TextViewKt.addTextChangedListener(
    TextView receiver,
    Function4<CharSequenceIntegerIntegerIntegerUnit> beforeTextChanged,
    Function4<CharSequenceIntegerIntegerIntegerUnit> onTextChanged,
    Function1<EditableUnit> afterTextChanged
)

Add a text changed listener to this TextView using the provided actions

static final @NonNull TextWatcher
TextViewKt.doAfterTextChanged(
    TextView receiver,
    Function1<EditableUnit> action
)

Add an action which will be invoked after the text changed.

static final @NonNull TextWatcher
TextViewKt.doBeforeTextChanged(
    TextView receiver,
    Function4<CharSequenceIntegerIntegerIntegerUnit> action
)

Add an action which will be invoked before the text changed.

static final @NonNull TextWatcher
TextViewKt.doOnTextChanged(
    TextView receiver,
    Function4<CharSequenceIntegerIntegerIntegerUnit> action
)

Add an action which will be invoked when the text is changing.

Public methods

TextViewKt.addTextChangedListener

public static final @NonNull TextWatcher TextViewKt.addTextChangedListener(
    TextView receiver,
    Function4<CharSequenceIntegerIntegerIntegerUnit> beforeTextChanged,
    Function4<CharSequenceIntegerIntegerIntegerUnit> onTextChanged,
    Function1<EditableUnit> afterTextChanged
)

Add a text changed listener to this TextView using the provided actions

Returns
@NonNull TextWatcher

the TextWatcher added to the TextView

TextViewKt.doAfterTextChanged

public static final @NonNull TextWatcher TextViewKt.doAfterTextChanged(
    TextView receiver,
    Function1<EditableUnit> action
)

Add an action which will be invoked after the text changed.

Returns
@NonNull TextWatcher

the TextWatcher added to the TextView

TextViewKt.doBeforeTextChanged

public static final @NonNull TextWatcher TextViewKt.doBeforeTextChanged(
    TextView receiver,
    Function4<CharSequenceIntegerIntegerIntegerUnit> action
)

Add an action which will be invoked before the text changed.

Returns
@NonNull TextWatcher

the TextWatcher added to the TextView

TextViewKt.doOnTextChanged

public static final @NonNull TextWatcher TextViewKt.doOnTextChanged(
    TextView receiver,
    Function4<CharSequenceIntegerIntegerIntegerUnit> action
)

Add an action which will be invoked when the text is changing.

Returns
@NonNull TextWatcher

the TextWatcher added to the TextView