Language

ISpanWatcher.OnSpanAdded(ISpannable, Object, Int32, Int32) Method

Definition

This method is called to notify you that the specified object has been attached to the specified range of the text.

[Android.Runtime.Register("onSpanAdded", "(Landroid/text/Spannable;Ljava/lang/Object;II)V", "GetOnSpanAdded_Landroid_text_Spannable_Ljava_lang_Object_IIHandler:Android.Text.ISpanWatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnSpanAdded(Android.Text.ISpannable? text, Java.Lang.Object? what, int start, int end);
[<Android.Runtime.Register("onSpanAdded", "(Landroid/text/Spannable;Ljava/lang/Object;II)V", "GetOnSpanAdded_Landroid_text_Spannable_Ljava_lang_Object_IIHandler:Android.Text.ISpanWatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnSpanAdded : Android.Text.ISpannable * Java.Lang.Object * int * int -> unit

Parameters

text
ISpannable

The text to which the span was attached.

what
Object

The span object that was added.

start
Int32

The span's start character offset.

end
Int32

The span's exclusive end character offset.

Attributes

Remarks

This method is called to notify you that the specified object has been attached to the specified range of the text.

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