Language

TextChangeTypes Enum

Definition

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum TextChangeTypes
[<System.Flags>]
type TextChangeTypes = 
Inheritance
TextChangeTypes
Attributes

Fields

Name Value Description
Undefined 0

Change type for TYPE_VIEW_TEXT_CHANGED event indicating the type of the text change is not defined.

Android reference for android.view.accessibility.AccessibilityEvent.TEXT_CHANGE_TYPE_UNDEFINED.

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.

InComposition 1

Change type for TYPE_VIEW_TEXT_CHANGED event indicating that the text change occurred within an ongoing IME composition.

The text change occurred within an ongoing IME composition. This indicates the text is transient and not yet committed. For IMEs that predict text or requires multiple steps to compose a glyph or word, the TYPE_VIEW_TEXT_CHANGED event may appear as a replacement of the entire composing text rather than an incremental change. This flag helps services understand the nature of such intermediate text updates.

Android reference for android.view.accessibility.AccessibilityEvent.TEXT_CHANGE_TYPE_IN_COMPOSITION.

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.

CommittedByIme 2

Change type for TYPE_VIEW_TEXT_CHANGED event indicating that the text change is the result of an IME committing its composing text.

The TYPE_VIEW_TEXT_CHANGED event may appear as a replacement of the text with an identical string, but this type can be a signal to accessibility services that this change represents text finalization.

Android reference for android.view.accessibility.AccessibilityEvent.TEXT_CHANGE_TYPE_COMMITTED_BY_IME.

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.

ConversionSuggestionSelectedByIme 4

Change type for TYPE_VIEW_TEXT_CHANGED event indicating that the text change was triggered by the user selecting a conversion suggestion from an IME.

This type provides a hint to accessibility services that the IME might also send a separate, more detailed event representing the selection itself. That event may provide more comprehensive information than this text change event.

Android reference for android.view.accessibility.AccessibilityEvent.TEXT_CHANGE_TYPE_CONVERSION_SUGGESTION_SELECTED_BY_IME.

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