Skip to content

Most visited

Recently visited

added in API level 3


Framework classes for interaction between views and input methods (such as soft keyboards). See InputMethodManager for an overview. In most cases the main classes here are not needed for most applications, since they are dealt with for you by TextView. When implementing a custom text editor, however, you will need to implement the InputConnection class to allow the current input method to interact with your view.


InputConnection The InputConnection interface is the communication channel from an InputMethod back to the application that is receiving its input. 
InputMethod The InputMethod interface represents an input method which can generate key events and text, such as digital, email addresses, CJK characters, other language characters, and etc., while handling various input events, and send the text back to the application that requests text input. 
InputMethodSession The InputMethodSession interface provides the per-client functionality of InputMethod that is safe to expose to applications. 


BaseInputConnection Base class for implementors of the InputConnection interface, taking care of most of the common behavior for providing a connection to an Editable. 
CompletionInfo Information about a single text completion that an editor has reported to an input method. 
CorrectionInfo Information about a single text correction that an editor has reported to an input method. 
CursorAnchorInfo Positional information about the text insertion point and characters in the composition string. 
CursorAnchorInfo.Builder Builder for CursorAnchorInfo
EditorInfo An EditorInfo describes several attributes of a text editing object that an input method is communicating with (typically an EditText), most importantly the type of text content it contains and the current cursor position. 
ExtractedText Information about text that has been extracted for use by an input method. 
ExtractedTextRequest Description of what an input method would like from an application when extract text from its input editor. 
InputBinding Information given to an InputMethod about a client connecting to it. 

Wrapper class for proxying calls to another InputConnection. 

InputContentInfo A container object with which input methods can send content files to the target application. 
InputMethodInfo This class is used to specify meta information of an input method. 
InputMethodManager Central system API to the overall input method framework (IMF) architecture, which arbitrates interaction between applications and the current input method. 
InputMethodSubtype This class is used to specify meta information of a subtype contained in an input method editor (IME). 
InputMethodSubtype.InputMethodSubtypeBuilder InputMethodSubtypeBuilder is a builder class of InputMethodSubtype. 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)