Share via


IInputMethodSession Interface

Definition

The InputMethodSession interface provides the per-client functionality of InputMethod that is safe to expose to applications.

[Android.Runtime.Register("android/view/inputmethod/InputMethodSession", "", "Android.Views.InputMethods.IInputMethodSessionInvoker")]
public interface IInputMethodSession : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/view/inputmethod/InputMethodSession", "", "Android.Views.InputMethods.IInputMethodSessionInvoker")>]
type IInputMethodSession = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Derived
Attributes
Implements

Remarks

The InputMethodSession interface provides the per-client functionality of InputMethod that is safe to expose to applications.

Applications will not normally use this interface themselves, instead relying on the standard interaction provided by android.widget.TextView and android.widget.EditText.

Java documentation for android.view.inputmethod.InputMethodSession.

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.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)

Methods

AppPrivateCommand(String, Bundle)

Process a private command sent from the application to the input method.

DispatchGenericMotionEvent(Int32, MotionEvent, IInputMethodSessionEventCallback)

This method is called when there is a generic motion event.

DispatchKeyEvent(Int32, KeyEvent, IInputMethodSessionEventCallback)

This method is called when a key is pressed.

DispatchTrackballEvent(Int32, MotionEvent, IInputMethodSessionEventCallback)

This method is called when there is a track ball event.

DisplayCompletions(CompletionInfo[])

Called by a text editor that performs auto completion, to tell the input method about the completions it has available.

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
FinishInput()

This method is called when the application would like to stop receiving text input.

SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
ToggleSoftInput(ShowFlags, HideSoftInputFlags)

Toggle the soft input window.

UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)
UpdateCursor(Rect)

This method is called when cursor location of the target input field has changed within its window.

UpdateCursorAnchorInfo(CursorAnchorInfo)

This method is called when the cursor and/or the character position relevant to text input is changed on the screen.

UpdateExtractedText(Int32, ExtractedText)

Called by a text editor to report its new extracted text when its contents change.

UpdateSelection(Int32, Int32, Int32, Int32, Int32, Int32)

This method is called when the selection or cursor in the current target input field has changed.

ViewClicked(Boolean)

This method is called when the user tapped a text view.

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to