Share via


SelectionEvent.CreateSelectionModifiedEvent Method

Definition

Overloads

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

the start (inclusive) index of the selection

end
Int32

the end (exclusive) index of the selection

Returns

Attributes

Remarks

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

Java documentation for android.view.textclassifier.SelectionEvent.createSelectionModifiedEvent(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

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

the start (inclusive) index of the selection

end
Int32

the end (exclusive) index of the selection

classification
TextClassification

the TextClassification object returned by the TextClassifier that classified the selected text

Returns

Attributes

Remarks

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

Java documentation for android.view.textclassifier.SelectionEvent.createSelectionModifiedEvent(int, int, android.view.textclassifier.TextClassification).

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

the start (inclusive) index of the selection

end
Int32

the end (exclusive) index of the selection

selection
TextSelection

the TextSelection object returned by the TextClassifier for the specified selection

Returns

Attributes

Remarks

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

Java documentation for android.view.textclassifier.SelectionEvent.createSelectionModifiedEvent(int, int, android.view.textclassifier.TextSelection).

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