InputMethodService.InputMethodImpl


public class InputMethodService.InputMethodImpl
extends AbstractInputMethodService.AbstractInputMethodImpl

java.lang.Object
   ↳ android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodImpl
     ↳ android.inputmethodservice.InputMethodService.InputMethodImpl


Concrete implementation of AbstractInputMethodService.AbstractInputMethodImpl that provides all of the standard behavior for an input method.

Summary

Inherited constants

Public constructors

InputMethodImpl()

Public methods

void attachToken(IBinder token)


This method must be called from the main thread of your app.

void bindInput(InputBinding binding)

Calls InputMethodService#onBindInput() when done.

void changeInputMethodSubtype(InputMethodSubtype subtype)


This method must be called from the main thread of your app.

void hideSoftInput(int flags, ResultReceiver resultReceiver)


This method must be called from the main thread of your app.

void restartInput(InputConnection ic, EditorInfo editorInfo)


This method must be called from the main thread of your app.

void showSoftInput(int flags, ResultReceiver resultReceiver)


This method must be called from the main thread of your app.

void startInput(InputConnection ic, EditorInfo editorInfo)


This method must be called from the main thread of your app.

void unbindInput()

Calls InputMethodService#onUnbindInput() when done.

Inherited methods

Public constructors

InputMethodImpl

public InputMethodImpl ()

Public methods

attachToken

Added in API level 3
public void attachToken (IBinder token)


This method must be called from the main thread of your app.

Parameters
token IBinder

bindInput

Added in API level 3
public void bindInput (InputBinding binding)

Calls InputMethodService#onBindInput() when done.


This method must be called from the main thread of your app.

Parameters
binding InputBinding

changeInputMethodSubtype

Added in API level 11
public void changeInputMethodSubtype (InputMethodSubtype subtype)


This method must be called from the main thread of your app.

Parameters
subtype InputMethodSubtype

hideSoftInput

Added in API level 3
public void hideSoftInput (int flags, 
                ResultReceiver resultReceiver)


This method must be called from the main thread of your app.

Parameters
flags int

resultReceiver ResultReceiver

restartInput

Added in API level 3
public void restartInput (InputConnection ic, 
                EditorInfo editorInfo)


This method must be called from the main thread of your app.

Parameters
ic InputConnection

editorInfo EditorInfo

showSoftInput

Added in API level 3
public void showSoftInput (int flags, 
                ResultReceiver resultReceiver)


This method must be called from the main thread of your app.

Parameters
flags int: Value is either 0 or a combination of InputMethod.SHOW_EXPLICIT, and InputMethod.SHOW_FORCED

resultReceiver ResultReceiver

startInput

Added in API level 3
public void startInput (InputConnection ic, 
                EditorInfo editorInfo)


This method must be called from the main thread of your app.

Parameters
ic InputConnection

editorInfo EditorInfo

unbindInput

Added in API level 3
public void unbindInput ()

Calls InputMethodService#onUnbindInput() when done.


This method must be called from the main thread of your app.