Android.InputMethodServices 命名空间

为 Android 输入法服务和键盘视图提供类。

类

名称 说明
AbstractInputMethodService

AbstractInputMethodService 为输入方法提供抽象基类。

AbstractInputMethodService.AbstractInputMethodImpl

派生类实现其 InputMethod 接口的基类。

AbstractInputMethodService.AbstractInputMethodImpl.InterfaceConsts

包含输入方法接口中的常量。

AbstractInputMethodService.AbstractInputMethodSessionImpl

派生类实现其 InputMethodSession 接口的基类。

ExtractEditText

用于在全屏输入方法中显示和交互提取的文本的专用化 EditText 。

InputMethodService

InputMethodService 提供 InputMethod 的标准实现,最终实现可从中派生和自定义。

InputMethodService.InputMethodImpl

具体 AbstractInputMethodService.AbstractInputMethodImpl 实现为输入法提供所有标准行为。

InputMethodService.InputMethodSessionImpl

具体 AbstractInputMethodService.AbstractInputMethodSessionImpl 实现为输入法会话提供所有标准行为。

InputMethodService.Insets

有关输入法 UI 的有趣部分的显示位置的信息。

Keyboard

加载键盘的 XML 说明并存储键的属性。

Keyboard.Key

用于描述键盘中单个键的位置和特征的类。

Keyboard.Row

键盘中键的容器。

KeyboardView

呈现虚拟 Keyboard的视图。

KeyboardView.KeyEventArgs

提供事件的数据 Key 。

KeyboardView.PressEventArgs

提供事件的数据 Press 。

KeyboardView.ReleaseEventArgs

提供事件的数据 Release 。

KeyboardView.TextEventArgs

提供事件的数据 Text 。

KeyboardViewIOnKeyboardActionListenerExtensions

为键盘操作侦听器的 OnText 回调提供字符串重载。

接口

名称 说明
KeyboardView.IOnKeyboardActionListener

虚拟键盘事件的侦听器。

枚举

名称 说明
BackDisposition

枚举多个类型返回的值。

Edge

枚举由多个方法 Edge返回的值。

Keycode

枚举由多个方法 Keycode返回的值。

TouchableInsets

枚举多个类型返回的值。

注解

InputMethodService 提供输入方法服务行为。 键盘存储键布局信息,KeyboardView 绘制和处理键盘的触摸输入。 键盘和 KeyboardView 在 Android 29 及更高版本上已过时。