Language

ISpanWatcher.OnSpanChanged Method

Definition

This method is called to notify you that the specified object has been relocated from the range ostart…oend to the new range nstart…nend of the text.

[Android.Runtime.Register("onSpanChanged", "(Landroid/text/Spannable;Ljava/lang/Object;IIII)V", "GetOnSpanChanged_Landroid_text_Spannable_Ljava_lang_Object_IIIIHandler:Android.Text.ISpanWatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnSpanChanged(Android.Text.ISpannable? text, Java.Lang.Object? what, int ostart, int oend, int nstart, int nend);
[<Android.Runtime.Register("onSpanChanged", "(Landroid/text/Spannable;Ljava/lang/Object;IIII)V", "GetOnSpanChanged_Landroid_text_Spannable_Ljava_lang_Object_IIIIHandler:Android.Text.ISpanWatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnSpanChanged : Android.Text.ISpannable * Java.Lang.Object * int * int * int * int -> unit

Parameters

text
ISpannable

The text whose span range changed.

what
Object

The span object whose range changed.

ostart
Int32

The previous start character offset.

oend
Int32

The previous exclusive end character offset.

nstart
Int32

The new start character offset.

nend
Int32

The new exclusive end character offset.

Attributes

Remarks

This method is called to notify you that the specified object has been relocated from the range ostart&hellip;oend to the new range nstart&hellip;nend of the text.

Java documentation for android.text.SpanWatcher.onSpanChanged(android.text.Spannable, java.lang.Object, int, 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