Partager via


TextView.OnSelectionChanged(Int32, Int32) Method

Definition

This method is called when the selection has changed, in case any subclasses would like to know.

[Android.Runtime.Register("onSelectionChanged", "(II)V", "GetOnSelectionChanged_IIHandler")]
protected virtual void OnSelectionChanged (int selStart, int selEnd);
[<Android.Runtime.Register("onSelectionChanged", "(II)V", "GetOnSelectionChanged_IIHandler")>]
abstract member OnSelectionChanged : int * int -> unit
override this.OnSelectionChanged : int * int -> unit

Parameters

selStart
Int32

The new selection start location.

selEnd
Int32

The new selection end location.

Attributes

Remarks

This method is called when the selection has changed, in case any subclasses would like to know. </p> <p class="note"><strong>Note:</strong> Always call the super implementation, which informs the accessibility subsystem about the selection change. </p>

Java documentation for android.widget.TextView.onSelectionChanged(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