SelectionEvent.CreateSelectionActionEvent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateSelectionActionEvent(Int32, Int32, SelectionAction, TextClassification) |
Creates an event specifying an action taken on a selection. |
CreateSelectionActionEvent(Int32, Int32, SelectionAction) |
Creates an event specifying an action taken on a selection. |
CreateSelectionActionEvent(Int32, Int32, SelectionAction, TextClassification)
Creates an event specifying an action taken on a selection.
[Android.Runtime.Register("createSelectionActionEvent", "(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/SelectionEvent;", "", ApiSince=28)]
public static Android.Views.TextClassifiers.SelectionEvent CreateSelectionActionEvent (int start, int end, Android.Views.TextClassifiers.SelectionAction actionType, Android.Views.TextClassifiers.TextClassification classification);
[<Android.Runtime.Register("createSelectionActionEvent", "(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/SelectionEvent;", "", ApiSince=28)>]
static member CreateSelectionActionEvent : int * int * Android.Views.TextClassifiers.SelectionAction * 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
- actionType
- SelectionAction
the action that was performed on the selection
- classification
- TextClassification
the TextClassification object returned by the TextClassifier that classified the selected text
Returns
- Attributes
Remarks
Creates an event specifying an action taken on a selection. Use when the user clicks on an action to act on the selected text and the selection's entity type is known.
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
CreateSelectionActionEvent(Int32, Int32, SelectionAction)
Creates an event specifying an action taken on a selection.
[Android.Runtime.Register("createSelectionActionEvent", "(III)Landroid/view/textclassifier/SelectionEvent;", "", ApiSince=28)]
public static Android.Views.TextClassifiers.SelectionEvent CreateSelectionActionEvent (int start, int end, Android.Views.TextClassifiers.SelectionAction actionType);
[<Android.Runtime.Register("createSelectionActionEvent", "(III)Landroid/view/textclassifier/SelectionEvent;", "", ApiSince=28)>]
static member CreateSelectionActionEvent : int * int * Android.Views.TextClassifiers.SelectionAction -> Android.Views.TextClassifiers.SelectionEvent
Parameters
- start
- Int32
the start (inclusive) index of the selection
- end
- Int32
the end (exclusive) index of the selection
- actionType
- SelectionAction
the action that was performed on the selection
Returns
- Attributes
Remarks
Creates an event specifying an action taken on a selection. Use when the user clicks on an action to act on the selected text.
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.