語言

SelectionEventType 列舉

定義

識別由選取事件報告的文字選擇變更。

public enum SelectionEventType
type SelectionEventType = 
繼承
SelectionEventType

欄位

名稱 值 Description
SelectionStarted 1

使用者開始新選取。

SelectionModified 2

使用者修改了現有的選擇。

SmartSelectionSingle 3

智慧選擇會觸發單一標記(字)。

SmartSelectionMulti 4

智慧選取會跨越多個詞(token)。

AutoSelection 5

觸發選擇的不是使用者或預設的 TextClassifier。

備註

這些值用來區分選擇的開始、範圍的變更,以及自動或智慧選擇。 它們代表 的 android.view.textclassifier.SelectionEvent選擇變化常數;其作用常數分別由 SelectionAction暴露。

適用於