Android.Views.InputMethods 命名空間

包含用於實作及互動輸入法(如軟體鍵盤)的 API。

類別

名稱 Description
BaseInputConnection

為 InputConnection 介面實作者設計的基底類別,負責處理大部分常見的連接行為,用於提供與 Editable 的連線。

BaseInputConnection.InterfaceConsts

揭露 的 BaseInputConnection輸入連接介面常數。

CompletionInfo

關於編輯者向輸入法回報的單一文字補全資訊。

CompletionInfo.InterfaceConsts

揭露 的 CompletionInfo可封區介面常數。

CorrectionInfo

編輯者向輸入法回報的單一文字修正資訊。

CorrectionInfo.InterfaceConsts

揭露 的 CorrectionInfo可封區介面常數。

CursorAnchorInfo

關於文字插入點及組合字串中字元的位置資訊。

CursorAnchorInfo.Builder

建構者 CursorAnchorInfo。

CursorAnchorInfo.InterfaceConsts

揭露 的 CursorAnchorInfo可封區介面常數。

DeleteGesture

一個子類 HandwritingGesture ,用於使用單一矩形刪除文字區域。

DeleteGesture.Builder

建構者 DeleteGesture。

DeleteGesture.InterfaceConsts

揭露 的 DeleteGesture可封區介面常數。

DeleteRangeGesture

的子類 HandwritingGesture 用於透過定義起始與結束矩形來刪除一段文字。

DeleteRangeGesture.Builder

建構者 DeleteRangeGesture。

DeleteRangeGesture.InterfaceConsts

揭露 的 DeleteRangeGesture可封區介面常數。

EditorBoundsInfo

編輯器中矩形位置相關資訊容器。

EditorBoundsInfo.Builder

建構者 EditorBoundsInfo。

EditorBoundsInfo.InterfaceConsts

揭露 的 EditorBoundsInfo可封區介面常數。

EditorInfo

EditorInfo 描述輸入法與文字編輯物件通訊的數個屬性(通常是 EditText),最重要的是它所包含的文字內容類型和目前游標位置。

EditorInfo.InterfaceConsts

從 所 EditorInfo實作的介面中公開常數。

ExtractedText

關於已擷取以供輸入法使用的文字資訊。

ExtractedText.InterfaceConsts

揭露 的 ExtractedText可封區介面常數。

ExtractedTextRequest

描述輸入法在從輸入編輯器擷取文字時,應用程式會想要什麼。

ExtractedTextRequest.InterfaceConsts

揭露 的 ExtractedTextRequest可封區介面常數。

HandwritingGesture

觸控筆手寫手勢的基礎類別。

IConnectionlessHandwritingCallbackExtensions

為手寫結果回調提供字串超載。

IInputConnectionExtensions

為輸入連線方法提供字串過載。

InlineSuggestion

此類別代表一個由一個應用程式提出的內嵌建議,並可嵌入另一個應用程式的使用者介面中。

InlineSuggestion.InterfaceConsts

揭露 的 InlineSuggestion可封區介面常數。

InlineSuggestionInfo

此類別代表內嵌建議的描述。

InlineSuggestionInfo.InterfaceConsts

揭露 的 InlineSuggestionInfo可封區介面常數。

InlineSuggestionsRequest

這個類別代表一個應用程式提出的內嵌建議請求,用來從另一個來源取得建議。

InlineSuggestionsRequest.Builder

一位建造者 InlineSuggestionsRequest

InlineSuggestionsRequest.InterfaceConsts

揭露 的 InlineSuggestionsRequest可封區介面常數。

InlineSuggestionsResponse

此類別代表一種內嵌建議回應。

InlineSuggestionsResponse.InterfaceConsts

揭露 的 InlineSuggestionsResponse可封區介面常數。

InputBinding

提供給 a InputMethod 的關於客戶連線資訊。

InputBinding.InterfaceConsts

揭露 的 InputBinding可封區介面常數。

InputConnection

InputConnection 介面是從 back InputMethod 到 接收輸入的應用程式之間的通訊通道。

InputConnectionWrapper

用來代理呼叫到另一個輸入連接的包裝類別。

InputConnectionWrapper.InterfaceConsts

揭露 的 InputConnectionWrapper輸入連接介面常數。

InputContentInfo

一個容器物件,輸入方法可透過此將內容檔案傳送至目標應用程式。

InputContentInfo.InterfaceConsts

揭露 的 InputContentInfo可封區介面常數。

InputMethod

提供輸入法服務常數的舊有綁定。

InputMethodInfo

此類別用於指定輸入法的元資訊。

InputMethodInfo.InterfaceConsts

揭露 的 InputMethodInfo可封區介面常數。

InputMethodManager

整體輸入法框架(IMF)架構的中央系統 API,負責仲裁應用程式與現有輸入法之間的互動。

InputMethodSubtype

此類別用於指定輸入法編輯器(IME)中包含的子類型的元資訊。

InputMethodSubtype.InputMethodSubtypeBuilder

InputMethodSubtypeBuilder 是 InputMethodSubtype 的一個建構類別。

InputMethodSubtype.InterfaceConsts

揭露 的 InputMethodSubtype可封區介面常數。

InsertGesture

的 HandwritingGesture 子類別用於在定義插入點插入文字。

InsertGesture.Builder

建構者 InsertGesture。

InsertGesture.InterfaceConsts

揭露 的 InsertGesture可封區介面常數。

InsertModeGesture

的 HandwritingGesture 子類別用於啟動插入模式,在編輯器中插入空格,讓使用者能在指定插入點自由手寫。

InsertModeGesture.Builder

建構者 InsertModeGesture。

InsertModeGesture.InterfaceConsts

揭露 的 InsertModeGesture可封區介面常數。

JoinOrSplitGesture

是 的 HandwritingGesture 子類,用於刪除或插入文字空白。

JoinOrSplitGesture.Builder

建構者 JoinOrSplitGesture。

JoinOrSplitGesture.InterfaceConsts

揭露 的 JoinOrSplitGesture可封區介面常數。

PreviewableHandwritingGesture

A HandwritingGesture 可以是 InputConnection#previewHandwritingGesture( PreviewableHandwritingGesture, CancellationSignal) previewed。

RemoveSpaceGesture

是去除文字空白的子類 HandwritingGesture 。

RemoveSpaceGesture.Builder

建構者 RemoveSpaceGesture。

RemoveSpaceGesture.InterfaceConsts

揭露 的 RemoveSpaceGesture可封區介面常數。

SelectGesture

的子類 HandwritingGesture 用於使用單一矩形選取文字區域。

SelectGesture.Builder

建構者 SelectGesture。

SelectGesture.InterfaceConsts

揭露 的 SelectGesture可封區介面常數。

SelectRangeGesture

的子類 HandwritingGesture ,透過定義起始與結尾矩形來選取文字範圍。

SelectRangeGesture.Builder

建構者 SelectRangeGesture。

SelectRangeGesture.InterfaceConsts

揭露 的 SelectRangeGesture可封區介面常數。

SurroundingText

關於游標周圍文字的資訊,供輸入法使用。

SurroundingText.InterfaceConsts

揭露 的 SurroundingText可封區介面常數。

TextAppearanceInfo

編輯器中文字外觀的資訊,傳遞 CursorAnchorInfo 給 InputMethodService。

TextAppearanceInfo.Builder

建構者 TextAppearanceInfo。

TextAppearanceInfo.InterfaceConsts

揭露 的 TextAppearanceInfo可封區介面常數。

TextAttribute

以我經驗來說,資料類別在設定文本時可以帶出額外資訊到應用程式。

TextAttribute.Builder

建立 TextAttribute.

TextAttribute.InterfaceConsts

揭露 的 TextAttribute可封區介面常數。

TextBoundsInfo

該文字會界定編輯器中某個文字切片的資訊。

TextBoundsInfo.Builder

建構類別用來建立一個 TextBoundsInfo 物件。

TextBoundsInfo.InterfaceConsts

揭露 的 TextBoundsInfo可封區介面常數。

TextBoundsInfoResult

儲存呼叫結果 InputConnection#requestTextBoundsInfo(RectF, Executor, Consumer) 的物件。

TextSnapshot

一個不可變的文字編輯狀態資料快照。

介面

名稱 Description
IConnectionlessHandwritingCallback

介面接收使用其中之一 InputMethodManager#startConnectionlessStylusHandwriting(View, CursorAnchorInfo, Executor,ConnectionlessHandwritingCallback)、 、 InputMethodManager#startConnectionlessStylusHandwritingForDelegation(View, CursorAnchorInfo, Executor, ConnectionlessHandwritingCallback)或 InputMethodManager#startConnectionlessStylusHandwritingForDelegation(View, CursorAnchorInfo, String, Executor, ConnectionlessHandwritingCallback)啟動無連接觸控筆手寫會話的結果。

IInputConnection

InputConnection 介面是從 back InputMethod 到 接收輸入的應用程式之間的通訊通道。

IInputMethod

輸入方法介面代表一種輸入法,能產生關鍵事件與文字,如數位、電子郵件地址、中日韓文字、其他語言字元等,同時處理各種輸入事件,並將文字回傳給請求文字輸入的應用程式。

IInputMethodSession

InputMethodSession 介面提供每個用戶端 InputMethod 的安全功能,可以安全地暴露給應用程式。

IInputMethodSessionCallback

接收建立輸入法會話的結果。

IInputMethodSessionEventCallback

接收傳送至輸入法會話的輸入事件的完成資訊。

列舉

名稱 Description
ConnectionlessHandwritingError

識別由無連線手寫工作階段回報的錯誤。

CursorAnchorFlags

描述游標錨點邊界的可見性與方向資訊。

CursorUpdate

列舉由 Immediate、 及 Monitor 成員返回的值。

CursorUpdateFilter

選取包含在游標錨點更新中的資料。

ExtractedTextFlags

列舉由 Flags、 Selecting、 及 SingleLine 成員返回的值。

GetTextFlags

指定從輸入連線擷取文字的選項。

HandwritingDelegateFlag

指定接受手寫筆手寫委派的選項。

HandwritingGestureGranularity

指定手寫選取或刪除手勢所使用的文字單位。

HandwritingGestureResult

識別手寫手勢所報告的結果。

HideSoftInputFlags

列舉由 ImplicitOnly、 None及 NotAlways 成員返回的值,並作為多種類型的參數取出。

ImeAction

列舉由多種類型回傳的值,並作為多種類型的參數取出。

ImeFlags

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

InputContentFlags

指定透過輸入連線提交內容的選項。

InputMethodResults

透過 的 InputMethodResults多種方法列舉 。

ShowFlags

列舉由多種類型回傳的值,並作為多種類型的參數取出。

ShowSoftInputFlags

列舉由 Explicit、 Forced及 None 成員返回的值,並作為多種類型的參數取出。

TextBoundsInfoFlags

描述文字邊界資訊中的字元屬性與線條方向。

TextBoundsInfoResultCode

識別文字界限資訊請求的結果。

TextExtractFlags

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

備註

輸入連線會在編輯器與輸入法之間交換編輯請求與文字狀態。