Språk

InputConnectionWrapper Class

Definition

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
InputConnectionWrapper
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 Object.

(Inherited from Object)
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 identity hash code assigned to this Java peer by the interop runtime.

(Inherited from Object)
JniManagedPeerState (Inherited from JavaObject)
JniPeerMembers
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)

The variant of InputConnection.commitText(CharSequence,int).

CommitText(ICharSequence, Int32)

Commit text to the text box and set the new cursor position.

CommitText(String, Int32, TextAttribute)

The variant of InputConnection.commitText(CharSequence,int).

CommitText(String, Int32)

Commit text to the text box and set the new cursor position.

Construct(JniObjectReference, JniObjectReferenceOptions) (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)

A variant of deleteSurroundingText(int, int).

Dispose()

Releases the resources held by this Java peer.

(Inherited from Object)
Dispose(Boolean)

Releases the resources held by this Java peer.

(Inherited from Object)
DisposeUnlessReferenced() (Inherited from JavaObject)
EndBatchEdit()

Tell the editor that you are done with a batch edit previously initiated with beginBatchEdit().

Equals(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)

Retrieve the current text in the input connection's editor, and monitor for any changes to it.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetSelectedText(GetTextFlags)

To be added

GetSelectedTextFormatted(GetTextFlags)

Gets the selected text, if any.

GetSurroundingText(Int32, Int32, Int32)

Gets the surrounding text around the current cursor, with beforeLength characters of text before the cursor (start of the selection), afterLength characters of text after the cursor (end of the selection), and all of the selected text.

GetTextAfterCursor(Int32, GetTextFlags)

To be added

GetTextAfterCursorFormatted(Int32, GetTextFlags)

Get n characters of text after the current cursor position.

GetTextBeforeCursor(Int32, GetTextFlags)

To be added

GetTextBeforeCursorFormatted(Int32, GetTextFlags)

Get n characters of text before the current cursor position.

JavaFinalize()

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)

Called by the input method to ask the editor for calling back InputMethodManager.updateCursorAnchorInfo(android.view.View,CursorAnchorInfo) to notify cursor/anchor locations.

RequestCursorUpdates(Int32)

Called by the input method to ask the editor for calling back InputMethodManager.updateCursorAnchorInfo(android.view.View,CursorAnchorInfo) to notify cursor/anchor locations.

RequestTextBoundsInfo(RectF, IExecutor, IConsumer)

Called by input method to request the TextBoundsInfo for a range of text which is covered by or in vicinity of the given bounds.

SendKeyEvent(KeyEvent)

Send a key event to the process that is currently attached through this input connection.

SetComposingRegion(Int32, Int32, TextAttribute)

The variant of InputConnection.setComposingRegion(int,int).

SetComposingRegion(Int32, Int32)

Mark a certain region of text as composing text.

SetComposingText(ICharSequence, Int32, TextAttribute)

The variant of setComposingText(CharSequence,int).

SetComposingText(ICharSequence, Int32)

Replace the currently composing text with the given text, and set the new cursor position.

SetComposingText(String, Int32, TextAttribute)

The variant of setComposingText(CharSequence,int).

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) (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 <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, 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 <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

Name Description
IJavaPeerable.Disposed() (Inherited from JavaObject)
IJavaPeerable.Finalized() (Inherited from JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock (Inherited from JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from JavaObject)
IJavaPeerable.UnregisterFromRuntime()

Extension Methods

Name Description
CommitText(IInputConnection, String, Int32, TextAttribute)

The variant of InputConnection.commitText(CharSequence,int).

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 self.

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 self to type TResult, checking that the coercion is valid on the Java side.

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
ReplaceText(IInputConnection, Int32, Int32, String, Int32, TextAttribute)

Replace the specific range in the editor with suggested text.

SetComposingText(IInputConnection, String, Int32, TextAttribute)

The variant of setComposingText(CharSequence,int).

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 self to type TResult, checking that the coercion is valid on the Java side.

Applies to