語言

InputConnection 類別

定義

警告

Use the 'Android.Views.InputMethods.IInputConnection' type. This class will be removed in a future release.

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

[Android.Runtime.Register("mono/internal/android/view/inputmethod/InputConnection", DoNotGenerateAcw=true)]
[System.Obsolete("Use the 'Android.Views.InputMethods.IInputConnection' type. This class will be removed in a future release.")]
public abstract class InputConnection : Java.Lang.Object
[<Android.Runtime.Register("mono/internal/android/view/inputmethod/InputConnection", DoNotGenerateAcw=true)>]
[<System.Obsolete("Use the 'Android.Views.InputMethods.IInputConnection' type. This class will be removed in a future release.")>]
type InputConnection = class
    inherit Object
繼承
InputConnection
屬性

備註

Android 平台文件

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

欄位

名稱 Description
CursorUpdateFilterCharacterBounds
已淘汰.

請主編來電 InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo) 每當游標或錨點位置改變時, CursorAnchorInfo#getCharacterBounds(int) 會有新的字元邊界。

CursorUpdateFilterEditorBounds
已淘汰.

請主編來電 InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo) 每當游標/錨點位置改變時,新增 EditorBoundsInfo

CursorUpdateFilterInsertionMarker
已淘汰.

請主編來電 InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo) 每當游標/錨點位置改變時,就會新增插入標記資訊 CursorAnchorInfo#getInsertionMarkerFlags()、、 CursorAnchorInfo#getInsertionMarkerBaseline()、等。

CursorUpdateFilterTextAppearance
已淘汰.

請主編來電 InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo) 只要游標/錨點位置改變,就會有新的文字外觀資訊 CursorAnchorInfo#getTextAppearanceInfo()}。

CursorUpdateFilterVisibleLineBounds
已淘汰.

請主編來電 InputMethodManager#updateCursorAnchorInfo(android.view.View, CursorAnchorInfo) 每當游標/錨點位置改變、編輯器或其父編輯器被捲動,或因文字更新而改變行界線時,都會新增 CursorAnchorInfo#getVisibleLineBounds() 可見的行界線。

GetExtractedTextMonitor
已淘汰.

標記用於 #getExtractedText 表示你希望在擷取後的文字變更時接收更新。

GetTextWithStyles
已淘汰.

標記用於與 #getTextAfterCursor#getTextBeforeCursor#getSurroundingText 讓樣式資訊與文字一同回傳。

HandwritingGestureResultCancelled
已淘汰.

結果是#performHandwritingGesture(HandwritingGesture, Executor, IntConsumer)HandwritingGesture取消的。

HandwritingGestureResultFailed
已淘汰.

結果是當#performHandwritingGesture(HandwritingGesture, Executor, IntConsumer)HandwritingGesture失敗且無適用HandwritingGesture#getFallbackText()或因其他原因無法套用時的結果。

HandwritingGestureResultFallback
已淘汰.

結果是指#performHandwritingGesture(HandwritingGesture, Executor, IntConsumer)HandwritingGesture失敗但HandwritingGesture#getFallbackText()已承諾時的結果。

HandwritingGestureResultSuccess
已淘汰.

當 成功執行文字時的結果#performHandwritingGesture(HandwritingGesture, Executor, IntConsumer)HandwritingGesture

HandwritingGestureResultUnknown
已淘汰.

編輯者沒有提供任何結果時的結果 #performHandwritingGesture(HandwritingGesture, Executor, IntConsumer)

HandwritingGestureResultUnsupported
已淘汰.

#performHandwritingGesture(HandwritingGesture, Executor, IntConsumer) HandwritingGesture當結果 在目前編輯器中不支援。

InputContentGrantReadUriPermission
已淘汰.

使用此旗標時,編輯器將能請求對物件中內容 InputContentInfo URI 的讀取權限。

屬性

名稱 Description
Class
已淘汰.

回傳此 Object的執行時類別。

(繼承來源 Object)
Handle
已淘汰.

底層 Android 實例的帳號。

(繼承來源 Object)
JniIdentityHashCode
已淘汰.

取得由互通執行時指派給此 Java 對等端的身份雜湊碼。

(繼承來源 Object)
JniManagedPeerState
已淘汰.

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

(繼承來源 JavaObject)
JniPeerMembers
已淘汰.

取得用於調用此 Java 節點成員的 JNI 元資料。

(繼承來源 Object)
PeerReference
已淘汰.

取得這個 Java 節點的 JNI 物件參考。

(繼承來源 Object)
ThresholdClass
已淘汰.

此 API 支援 Mono for Android 基礎架構,並非直接從你的程式碼中使用。

(繼承來源 Object)
ThresholdType
已淘汰.

此 API 支援 Mono for Android 基礎架構,並非直接從你的程式碼中使用。

(繼承來源 Object)

方法

名稱 Description
Clone()
已淘汰.

建立並回傳此物件的副本。

(繼承來源 Object)
Construct(JniObjectReference, JniObjectReferenceOptions)
已淘汰.

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

(繼承來源 JavaObject)
Dispose()
已淘汰.

釋放該 Java 節點所持有的資源。

(繼承來源 Object)
Dispose(Boolean)
已淘汰.

釋放該 Java 節點所持有的資源。

(繼承來源 Object)
DisposeUnlessReferenced()
已淘汰.

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

(繼承來源 JavaObject)
Equals(Object)
已淘汰.

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

(繼承來源 JavaObject)
Equals(Object)
已淘汰.

表示是否有其他物體「等同」於此物。

(繼承來源 Object)
GetHashCode()
已淘汰.

回傳物件的雜湊碼值。

(繼承來源 Object)
JavaFinalize()
已淘汰.

當垃圾回收判定該物件不再有相關參考時,由垃圾回收器呼叫。

(繼承來源 Object)
Notify()
已淘汰.

喚醒一個正在該物件監視器上等待的執行緒。

(繼承來源 Object)
NotifyAll()
已淘汰.

喚醒所有等待該物件監視器的執行緒。

(繼承來源 Object)
SetHandle(IntPtr, JniHandleOwnership)
已淘汰.

設定 Handle 屬性。

(繼承來源 Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions)
已淘汰.

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

(繼承來源 JavaObject)
ToArray<T>()
已淘汰.

從這個 Java 陣列包裝器建立一個受管理陣列。

(繼承來源 Object)
ToString()
已淘汰.

回傳物件的字串表示。

(繼承來源 Object)
UnregisterFromRuntime()
已淘汰.

將此 Java 節點從互通執行時中取消註冊。

(繼承來源 Object)
Wait()
已淘汰.

導致目前執行緒等待被喚醒,通常是透過 <em>通知</><em 或 em>中斷</em> 來喚醒。

(繼承來源 Object)
Wait(Int64, Int32)
已淘汰.

會讓目前執行緒等待喚醒,通常是透過 <em>通知</><em 或 em>中斷</em>,或是經過一定的真實時間。

(繼承來源 Object)
Wait(Int64)
已淘汰.

會讓目前執行緒等待喚醒,通常是透過 <em>通知</><em 或 em>中斷</em>,或是經過一定的真實時間。

(繼承來源 Object)

明確介面實作

名稱 Description
IJavaPeerable.Disposed()
已淘汰.

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

(繼承來源 JavaObject)
IJavaPeerable.Finalized()
已淘汰.

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

(繼承來源 JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock
已淘汰.

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

(繼承來源 JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)
已淘汰.

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

(繼承來源 JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)
已淘汰.

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

(繼承來源 JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)
已淘汰.

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

(繼承來源 JavaObject)

擴充方法

名稱 Description
GetJniTypeName(IJavaPeerable)
已淘汰.

取得實例 self類型的 JNI 名稱。

JavaAs<TResult>(IJavaPeerable)
已淘汰.

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

JavaCast<TResult>(IJavaObject)
已淘汰.

執行 Android 執行時檢查型別轉換。

JavaCast<TResult>(IJavaObject)
已淘汰.

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

TryJavaCast<TResult>(IJavaPeerable, TResult)
已淘汰.

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

適用於