Class of android.text · Selection.java · Android's reference
public class Selection
The cursor and the selection of a text, kept as two spans on it.
public static final Object SELECTION_START sourcepublic static final Object SELECTION_END sourcepublic static final int getSelectionStart(CharSequence text) sourcepublic static final int getSelectionEnd(CharSequence text) sourcepublic static void setSelection(Spannable text, int start, int stop) sourcepublic static final void setSelection(Spannable text, int index) sourcepublic static final void selectAll(Spannable text) sourcepublic static final void extendSelection(Spannable text, int index) sourcepublic static final void removeSelection(Spannable text) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.