InputConnectionWrapper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Wrapper class for proxying calls to another InputConnection.
[Android.Runtime.Register("android/view/inputmethod/InputConnectionWrapper", DoNotGenerateAcw=true)]
public class InputConnectionWrapper : Java.Lang.Object, Android.Views.InputMethods.IInputConnection, IDisposable
[<Android.Runtime.Register("android/view/inputmethod/InputConnectionWrapper", DoNotGenerateAcw=true)>]
type InputConnectionWrapper = class
inherit Object
interface IInputConnection
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Inheritance
- Attributes
- Implements
Remarks
Wrapper class for proxying calls to another InputConnection. Subclass and have fun!
Java documentation for android.view.inputmethod.InputConnectionWrapper.
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.
Constructors
| Name | Description |
|---|---|
| InputConnectionWrapper(IInputConnection, Boolean) |
Initializes a wrapper. |
| InputConnectionWrapper(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Properties
| Name | Description |
|---|---|
| Class |
Returns the runtime class of this |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| Handler |
Called by the system to enable application developers to specify a dedicated thread on which InputConnection methods are called back. |
| JniIdentityHashCode |
Gets the Java identity hash code stored for this peer. (Inherited from Object) |
| JniManagedPeerState |
Gets the state flags last assigned by the runtime. (Inherited from JavaObject) |
| JniPeerMembers |
Gets the JNI metadata used to access members of this Java binding. |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
| ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Methods
| Name | Description |
|---|---|
| BeginBatchEdit() |
Tell the editor that you are starting a batch of editor operations. |
| ClearMetaKeyStates(MetaKeyStates) |
Clear the given meta key pressed states in the given input connection. |
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| CloseConnection() |
Called by the system up to only once to notify that the system is about to invalidate connection between the input method and the application. |
| CommitCompletion(CompletionInfo) |
Commit a completion the user has selected from the possible ones previously reported to InputMethodSession#displayCompletions(CompletionInfo[]) or InputMethodManager#displayCompletions(View, CompletionInfo[]). |
| CommitContent(InputContentInfo, InputContentFlags, Bundle) |
Called by the input method to commit content such as a PNG image to the editor. |
| CommitCorrection(CorrectionInfo) |
Commit a correction automatically performed on the raw user's input. |
| CommitText(ICharSequence, Int32, TextAttribute) |
Commits text with optional metadata. |
| CommitText(ICharSequence, Int32) |
Commit text to the text box and set the new cursor position. |
| CommitText(String, Int32, TextAttribute) |
Commits text with optional metadata. |
| CommitText(String, Int32) |
Commit text to the text box and set the new cursor position. |
| Construct(JniObjectReference, JniObjectReferenceOptions) |
Delegates construction of this peer to the runtime's value manager. (Inherited from JavaObject) |
| DeleteSurroundingText(Int32, Int32) |
Delete beforeLength characters of text before the current cursor position, and delete afterLength characters of text after the current cursor position, excluding the selection. |
| DeleteSurroundingTextInCodePoints(Int32, Int32) |
Requests deletion around the selection using code-point lengths. |
| Dispose() |
Releases the JNI reference held by this managed peer and unregisters the peer from the interop runtime. (Inherited from Object) |
| Dispose(Boolean) |
Provides a disposal hook for subclasses. This implementation performs no action. (Inherited from Object) |
| DisposeUnlessReferenced() |
Asks the value manager to dispose this peer unless its mapping retains this same managed instance. (Inherited from JavaObject) |
| EndBatchEdit() |
Ends a batch of editor operations started by BeginBatchEdit(). |
| Equals(Object) |
Tests whether another managed peer refers to the same Java object. (Inherited from JavaObject) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| FinishComposingText() |
Have the text editor finish whatever composing text is currently active. |
| GetCursorCapsMode(CapitalizationMode) |
Retrieve the current capitalization mode in effect at the current cursor position in the text. |
| GetExtractedText(ExtractedTextRequest, GetTextFlags) |
Gets the editor's extracted text and can request updates when it changes. |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| GetSelectedText(GetTextFlags) |
Gets the selected text from the target connection as a string. |
| GetSelectedTextFormatted(GetTextFlags) |
Gets the selected text, if any. |
| GetSurroundingText(Int32, Int32, Int32) |
Gets text around the selection from the target connection. |
| GetTextAfterCursor(Int32, GetTextFlags) |
Gets text after the selection from the target connection as a string. |
| GetTextAfterCursorFormatted(Int32, GetTextFlags) |
Gets text after the selection from the target connection. |
| GetTextBeforeCursor(Int32, GetTextFlags) |
Gets text before the selection from the target connection as a string. |
| GetTextBeforeCursorFormatted(Int32, GetTextFlags) |
Gets text before the selection from the target connection. |
| JavaFinalize() |
Obsolete.
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
| NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
| PerformContextMenuAction(Int32) |
Perform a context menu action on the field. |
| PerformEditorAction(ImeAction) |
Have the editor perform an action it has said it can do. |
| PerformHandwritingGesture(HandwritingGesture, IExecutor, IIntConsumer) |
Perform a handwriting gesture on text. |
| PerformPrivateCommand(String, Bundle) |
API to send private commands from an input method to its connected editor. |
| PerformSpellCheck() |
Have the editor perform spell checking for the full content. |
| PreviewHandwritingGesture(PreviewableHandwritingGesture, CancellationSignal) |
Preview a handwriting gesture on text. |
| ReplaceText(Int32, Int32, ICharSequence, Int32, TextAttribute) |
Replace the specific range in the editor with suggested text. |
| ReplaceText(Int32, Int32, String, Int32, TextAttribute) |
Replace the specific range in the editor with suggested text. |
| ReportFullscreenMode(Boolean) |
Called back when the connected IME switches between fullscreen and normal modes. |
| RequestCursorUpdates(Int32, Int32) |
Requests cursor and anchor updates from the target connection. |
| RequestCursorUpdates(Int32) |
Requests cursor and anchor updates from the target connection. |
| RequestTextBoundsInfo(RectF, IExecutor, IConsumer) |
Requests text bounds for text in or near the specified screen rectangle. |
| SendKeyEvent(KeyEvent) |
Send a key event to the process that is currently attached through this input connection. |
| SetComposingRegion(Int32, Int32, TextAttribute) |
Marks a region as composing text and supplies optional text metadata. |
| SetComposingRegion(Int32, Int32) |
Mark a certain region of text as composing text. |
| SetComposingText(ICharSequence, Int32, TextAttribute) |
Sets the composing text and cursor position, with optional text metadata. |
| SetComposingText(ICharSequence, Int32) |
Replace the currently composing text with the given text, and set the new cursor position. |
| SetComposingText(String, Int32, TextAttribute) |
Sets the composing text and cursor position, with optional text metadata. |
| SetComposingText(String, Int32) |
Replace the currently composing text with the given text, and set the new cursor position. |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetImeConsumesInput(Boolean) |
Called by the input method to indicate that it consumes all input for itself, or no longer does so. |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) |
Stores a reference value in the control block without creating a JNI reference copy. (Inherited from JavaObject) |
| SetSelection(Int32, Int32) |
Set the selection of the text editor. |
| SetTarget(IInputConnection) |
Change the target of the input connection. |
| TakeSnapshot() |
Called by the system when it needs to take a snapshot of multiple text-related data in an atomic manner. |
| ToArray<T>() |
Creates a managed array from this Java array wrapper. (Inherited from Object) |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| UnregisterFromRuntime() |
Unregisters this Java peer from the interop runtime. (Inherited from Object) |
| Wait() |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted. (Inherited from Object) |
| Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. (Inherited from Object) |
| Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJavaPeerable.Disposed() |
Marks this peer as disposed and calls |
| IJavaPeerable.Finalized() |
Marks this peer as disposed and calls |
| IJavaPeerable.JniObjectReferenceControlBlock |
Gets the native control-block pointer used by this peer. (Inherited from JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) |
Stores the identity hash code supplied by the runtime. (Inherited from JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
Replaces the stored managed peer state flags. (Inherited from JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) |
Updates the peer reference and releases a disposed peer's control block when the reference is invalid. (Inherited from JavaObject) |
| IJavaPeerable.UnregisterFromRuntime() |
Removes this instance from the runtime's Java object lookup. |
Extension Methods
| Name | Description |
|---|---|
| CommitText(IInputConnection, String, Int32, TextAttribute) |
Commits text with additional text attributes. |
| CommitText(IInputConnection, String, Int32) |
Commit text to the text box and set the new cursor position. |
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| GetSelectedText(IInputConnection, GetTextFlags) |
Gets the selected text, if any. |
| GetTextAfterCursor(IInputConnection, Int32, GetTextFlags) |
Get n characters of text after the current cursor position. |
| GetTextBeforeCursor(IInputConnection, Int32, GetTextFlags) |
Get n characters of text before the current cursor position. |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) |
Reuses a compatible managed peer or obtains a wrapper of the requested type. |
| ReplaceText(IInputConnection, Int32, Int32, String, Int32, TextAttribute) |
Replace the specific range in the editor with suggested text. |
| SetComposingText(IInputConnection, String, Int32, TextAttribute) |
Sets composing text with additional text attributes. |
| SetComposingText(IInputConnection, String, Int32) |
Replace the currently composing text with the given text, and set the new cursor position. |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |