Android.InputMethodServices 命名空間

提供 Android 輸入法服務與鍵盤檢視的類別。

類別

名稱 Description
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

關於輸入法介面中有趣部分出現的位置資訊。

Keyboard

載入鍵盤的 XML 描述並儲存按鍵屬性。

Keyboard.Key

類別用於描述鍵盤中單一按鍵的位置與特性。

Keyboard.Row

鍵盤中按鍵的容器。

KeyboardView

一個能呈現虛擬 Keyboard的視圖。

KeyboardView.KeyEventArgs

提供 Key 事件的數據。

KeyboardView.PressEventArgs

提供 Press 事件的數據。

KeyboardView.ReleaseEventArgs

提供 Release 事件的數據。

KeyboardView.TextEventArgs

提供 Text 事件的數據。

KeyboardViewIOnKeyboardActionListenerExtensions

為鍵盤動作監聽者的 OnText 回調提供字串過載。

介面

名稱 Description
KeyboardView.IOnKeyboardActionListener

虛擬鍵盤事件的監聽器。

列舉

名稱 Description
BackDisposition

列舉由多種類型回傳的值。

Edge

透過 的 Edge多種方法列舉 。

Keycode

透過 的 Keycode多種方法列舉 。

TouchableInsets

列舉由多種類型回傳的值。

備註

InputMethodService 提供輸入方法服務行為。 鍵盤儲存按鍵配置資訊,而 KeyboardView 則繪製並處理鍵盤的觸控輸入。 Android 29 及以後版本的鍵盤與 KeyboardView 已過時。