InputMethodManager InputMethodManager Class

Definition

Central system API to the overall input method framework (IMF) architecture, which arbitrates interaction between applications and the current input method.

[Android.Runtime.Register("android/view/inputmethod/InputMethodManager", ApiSince=3, DoNotGenerateAcw=true)]
public sealed class InputMethodManager : Java.Lang.Object
type InputMethodManager = class
    inherit Object
Inheritance
InputMethodManagerInputMethodManager
Attributes

Remarks

Android platform documentation

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.

Fields

ShowForced ShowForced

Flag for ShowSoftInput(View, ShowFlags) to indicate that the user has forced the input method open (such as by long-pressing menu) so it should not be closed until they explicitly do so.

ShowImplicit ShowImplicit

Flag for ShowSoftInput(View, ShowFlags) to indicate that this is an implicit request to show the input window, not as the result of a direct request by the user.

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
CurrentInputMethodSubtype CurrentInputMethodSubtype

Returns the current input method subtype.

EnabledInputMethodList EnabledInputMethodList
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
InputMethodList InputMethodList
IsAcceptingText IsAcceptingText

Return true if the currently served view is accepting full text edits.

IsActive IsActive

Return true if any view is currently active in the input method.

IsFullscreenMode IsFullscreenMode

Allows you to discover whether the attached input method is running in fullscreen mode.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
LastInputMethodSubtype LastInputMethodSubtype
PeerReference PeerReference Inherited from Object
ShortcutInputMethodsAndSubtypes ShortcutInputMethodsAndSubtypes

Returns a map of all shortcut input method info and their subtypes.

ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
DispatchKeyEventFromInputMethod(View, KeyEvent) DispatchKeyEventFromInputMethod(View, KeyEvent)
DisplayCompletions(View, CompletionInfo[]) DisplayCompletions(View, CompletionInfo[])
Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
FromContext(Context) FromContext(Context)
GetEnabledInputMethodSubtypeList(InputMethodInfo, Boolean) GetEnabledInputMethodSubtypeList(InputMethodInfo, Boolean)

Returns a list of enabled input method subtypes for the specified input method info.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
HideSoftInputFromInputMethod(IBinder, HideSoftInputFlags) HideSoftInputFromInputMethod(IBinder, HideSoftInputFlags)

Close/hide the input method's soft input area, so the user no longer sees it or can interact with it.

HideSoftInputFromWindow(IBinder, HideSoftInputFlags) HideSoftInputFromWindow(IBinder, HideSoftInputFlags)
HideSoftInputFromWindow(IBinder, HideSoftInputFlags, ResultReceiver) HideSoftInputFromWindow(IBinder, HideSoftInputFlags, ResultReceiver)

Request to hide the soft input window from the context of the window that is currently accepting input.

HideStatusIcon(IBinder) HideStatusIcon(IBinder)
InvokeIsActive(View) InvokeIsActive(View)

Return true if the given view is the currently active view for the input method.

IsWatchingCursor(View) IsWatchingCursor(View)

Return true if the current input method wants to watch the location of the input editor's cursor in its window.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
RestartInput(View) RestartInput(View)

If the input method is currently connected to the given view, restart it with its new contents.

SendAppPrivateCommand(View, String, Bundle) SendAppPrivateCommand(View, String, Bundle)

Call AppPrivateCommand(String, Bundle) on the current Input Method.

SetAdditionalInputMethodSubtypes(String, InputMethodSubtype[]) SetAdditionalInputMethodSubtypes(String, InputMethodSubtype[])

Set additional input method subtypes.

SetCurrentInputMethodSubtype(InputMethodSubtype) SetCurrentInputMethodSubtype(InputMethodSubtype)

Switch to a new input method subtype of the current input method.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetInputMethod(IBinder, String) SetInputMethod(IBinder, String)

Force switch to a new input method component.

SetInputMethodAndSubtype(IBinder, String, InputMethodSubtype) SetInputMethodAndSubtype(IBinder, String, InputMethodSubtype)

Force switch to a new input method and subtype.

ShouldOfferSwitchingToNextInputMethod(IBinder) ShouldOfferSwitchingToNextInputMethod(IBinder)

Returns true if the current IME needs to offer the users ways to switch to a next input method (e.g. a globe key.

ShowInputMethodAndSubtypeEnabler(String) ShowInputMethodAndSubtypeEnabler(String)

Show the settings for enabling subtypes of the specified input method.

ShowInputMethodPicker() ShowInputMethodPicker()
ShowSoftInput(View, ShowFlags) ShowSoftInput(View, ShowFlags)
ShowSoftInput(View, ShowFlags, ResultReceiver) ShowSoftInput(View, ShowFlags, ResultReceiver)

Explicitly request that the current input method's soft input area be shown to the user, if needed.

ShowSoftInputFromInputMethod(IBinder, ShowFlags) ShowSoftInputFromInputMethod(IBinder, ShowFlags)

Show the input method's soft input area, so the user sees the input method window and can interact with it.

ShowStatusIcon(IBinder, String, Int32) ShowStatusIcon(IBinder, String, Int32)
SwitchToLastInputMethod(IBinder) SwitchToLastInputMethod(IBinder)

Force switch to the last used input method and subtype.

SwitchToNextInputMethod(IBinder, Boolean) SwitchToNextInputMethod(IBinder, Boolean)

Force switch to the next input method and subtype.

ToArray<T>() ToArray<T>() Inherited from Object
ToggleSoftInput(ShowFlags, HideSoftInputFlags) ToggleSoftInput(ShowFlags, HideSoftInputFlags)
ToggleSoftInputFromWindow(IBinder, ShowSoftInputFlags, HideSoftInputFlags) ToggleSoftInputFromWindow(IBinder, ShowSoftInputFlags, HideSoftInputFlags)

This method toggles the input method window display.

ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
UpdateCursor(View, Int32, Int32, Int32, Int32) UpdateCursor(View, Int32, Int32, Int32, Int32)

Report the current cursor location in its window.

UpdateCursorAnchorInfo(View, CursorAnchorInfo) UpdateCursorAnchorInfo(View, CursorAnchorInfo)

Report positional change of the text insertion point and/or characters in the composition string.

UpdateExtractedText(View, Int32, ExtractedText) UpdateExtractedText(View, Int32, ExtractedText)
UpdateSelection(View, Int32, Int32, Int32, Int32) UpdateSelection(View, Int32, Int32, Int32, Int32)

Report the current selection range.

ViewClicked(View) ViewClicked(View)

Notify the event when the user tapped or clicked the text view.

Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to