SelectionEvent.CreateSelectionModifiedEvent Method

Definition

Overloads

Name Description
CreateSelectionModifiedEvent(Int32, Int32)

Creates a "selection modified" event.

CreateSelectionModifiedEvent(Int32, Int32, TextClassification)

Creates a "selection modified" event.

CreateSelectionModifiedEvent(Int32, Int32, TextSelection)

Creates a "selection modified" event.

CreateSelectionModifiedEvent(Int32, Int32)

Creates a "selection modified" event.

[Android.Runtime.Register("createSelectionModifiedEvent", "(II)Landroid/view/textclassifier/SelectionEvent;", "", ApiSince=28)]
public static Android.Views.TextClassifiers.SelectionEvent CreateSelectionModifiedEvent(int start, int end);
[<Android.Runtime.Register("createSelectionModifiedEvent", "(II)Landroid/view/textclassifier/SelectionEvent;", "", ApiSince=28)>]
static member CreateSelectionModifiedEvent : int * int -> Android.Views.TextClassifiers.SelectionEvent

Parameters

start
Int32

int: the start (inclusive) index of the selection

end
Int32

int: the end (exclusive) index of the selection

Returns

This value cannot be null.

Attributes

Remarks

Creates a "selection modified" event. Use when the user modifies the selection.

Throws: IllegalArgumentException if end is less than start

Android reference for android.view.textclassifier.SelectionEvent.createSelectionModifiedEvent.

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

CreateSelectionModifiedEvent(Int32, Int32, TextClassification)

Creates a "selection modified" event.

[Android.Runtime.Register("createSelectionModifiedEvent", "(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/SelectionEvent;", "", ApiSince=28)]
public static Android.Views.TextClassifiers.SelectionEvent CreateSelectionModifiedEvent(int start, int end, Android.Views.TextClassifiers.TextClassification classification);
[<Android.Runtime.Register("createSelectionModifiedEvent", "(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/SelectionEvent;", "", ApiSince=28)>]
static member CreateSelectionModifiedEvent : int * int * Android.Views.TextClassifiers.TextClassification -> Android.Views.TextClassifiers.SelectionEvent

Parameters

start
Int32

int: the start (inclusive) index of the selection

end
Int32

int: the end (exclusive) index of the selection

classification
TextClassification

TextClassification: the TextClassification object returned by the TextClassifier that classified the selected text. This value cannot be null.

Returns

This value cannot be null.

Attributes

Remarks

Creates a "selection modified" event. Use when the user modifies the selection and the selection's entity type is known.

Throws: IllegalArgumentException if end is less than start

Android reference for android.view.textclassifier.SelectionEvent.createSelectionModifiedEvent.

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

CreateSelectionModifiedEvent(Int32, Int32, TextSelection)

Creates a "selection modified" event.

[Android.Runtime.Register("createSelectionModifiedEvent", "(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/SelectionEvent;", "", ApiSince=28)]
public static Android.Views.TextClassifiers.SelectionEvent CreateSelectionModifiedEvent(int start, int end, Android.Views.TextClassifiers.TextSelection selection);
[<Android.Runtime.Register("createSelectionModifiedEvent", "(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/SelectionEvent;", "", ApiSince=28)>]
static member CreateSelectionModifiedEvent : int * int * Android.Views.TextClassifiers.TextSelection -> Android.Views.TextClassifiers.SelectionEvent

Parameters

start
Int32

int: the start (inclusive) index of the selection

end
Int32

int: the end (exclusive) index of the selection

selection
TextSelection

TextSelection: the TextSelection object returned by the TextClassifier for the specified selection. This value cannot be null.

Returns

This value cannot be null.

Attributes

Remarks

Creates a "selection modified" event. Use when a TextClassifier modifies the selection.

Throws: IllegalArgumentException if end is less than start

Android reference for android.view.textclassifier.SelectionEvent.createSelectionModifiedEvent.

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