Language

ITextWatcher.OnTextChanged(ICharSequence, Int32, Int32, Int32) Method

Definition

This method is called to notify you that, within s, the count characters beginning at start have just replaced old text that had length before.

[Android.Runtime.Register("onTextChanged", "(Ljava/lang/CharSequence;III)V", "GetOnTextChanged_Ljava_lang_CharSequence_IIIHandler:Android.Text.ITextWatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnTextChanged(Java.Lang.ICharSequence? s, int start, int before, int count);
[<Android.Runtime.Register("onTextChanged", "(Ljava/lang/CharSequence;III)V", "GetOnTextChanged_Ljava_lang_CharSequence_IIIHandler:Android.Text.ITextWatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnTextChanged : Java.Lang.ICharSequence * int * int * int -> unit

Parameters

s
ICharSequence

The text after the replacement.

start
Int32

The first character offset in the replaced range.

before
Int32

The number of old characters that were replaced.

count
Int32

The number of replacement characters now in the text.

Attributes

Remarks

This method is called to notify you that, within s, the count characters beginning at start have just replaced old text that had length before. It is an error to attempt to make changes to s from this callback.

Java documentation for android.text.TextWatcher.onTextChanged(java.lang.CharSequence, int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to