SelectionEventType Enum
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.
Identifies a text selection change reported by a selection event.
public enum SelectionEventType
type SelectionEventType =
- Inheritance
-
SelectionEventType
Fields
| Name | Value | Description |
|---|---|---|
| SelectionStarted | 1 | User started a new selection. |
| SelectionModified | 2 | User modified an existing selection. |
| SmartSelectionSingle | 3 | Smart selection triggered for a single token (word). |
| SmartSelectionMulti | 4 | Smart selection triggered spanning multiple tokens (words). |
| AutoSelection | 5 | Something else other than User or the default TextClassifier triggered a selection. |
Remarks
The values distinguish the start of a selection, changes to its bounds, and automatic or smart selections. They represent the selection-change constants from android.view.textclassifier.SelectionEvent; its action constants are exposed separately by SelectionAction.