android.view.inputmethod
Class InputMethodManager

java.lang.Object
  extended by android.view.inputmethod.InputMethodManager

public final class InputMethodManager
extends Object


Field Summary
static int HIDE_IMPLICIT_ONLY
           
static int HIDE_NOT_ALWAYS
           
static int RESULT_HIDDEN
           
static int RESULT_SHOWN
           
static int RESULT_UNCHANGED_HIDDEN
           
static int RESULT_UNCHANGED_SHOWN
           
static int SHOW_FORCED
           
static int SHOW_IMPLICIT
           
 
Method Summary
 void displayCompletions(View view, CompletionInfo[] completions)
           
 InputMethodSubtype getCurrentInputMethodSubtype()
           
 List<InputMethodInfo> getEnabledInputMethodList()
           
 List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi, boolean allowsImplicitlySelectedSubtypes)
           
 List<InputMethodInfo> getInputMethodList()
           
 InputMethodSubtype getLastInputMethodSubtype()
           
 Map<InputMethodInfo,List<InputMethodSubtype>> getShortcutInputMethodsAndSubtypes()
           
 void hideSoftInputFromInputMethod(IBinder token, int flags)
           
 boolean hideSoftInputFromWindow(IBinder windowToken, int flags)
           
 boolean hideSoftInputFromWindow(IBinder windowToken, int flags, ResultReceiver resultReceiver)
           
 void hideStatusIcon(IBinder imeToken)
           
 boolean isAcceptingText()
           
 boolean isActive()
           
 boolean isActive(View view)
           
 boolean isFullscreenMode()
           
 boolean isWatchingCursor(View view)
           
 void restartInput(View view)
           
 void sendAppPrivateCommand(View view, String action, Bundle data)
           
 void setAdditionalInputMethodSubtypes(String imiId, InputMethodSubtype[] subtypes)
           
 boolean setCurrentInputMethodSubtype(InputMethodSubtype subtype)
           
 void setInputMethod(IBinder token, String id)
           
 void setInputMethodAndSubtype(IBinder token, String id, InputMethodSubtype subtype)
           
 void showInputMethodAndSubtypeEnabler(String imiId)
           
 void showInputMethodPicker()
           
 boolean showSoftInput(View view, int flags)
           
 boolean showSoftInput(View view, int flags, ResultReceiver resultReceiver)
           
 void showSoftInputFromInputMethod(IBinder token, int flags)
           
 void showStatusIcon(IBinder imeToken, String packageName, int iconId)
           
 boolean switchToLastInputMethod(IBinder imeToken)
           
 void toggleSoftInput(int showFlags, int hideFlags)
           
 void toggleSoftInputFromWindow(IBinder windowToken, int showFlags, int hideFlags)
           
 void updateCursor(View view, int left, int top, int right, int bottom)
           
 void updateExtractedText(View view, int token, ExtractedText text)
           
 void updateSelection(View view, int selStart, int selEnd, int candidatesStart, int candidatesEnd)
           
 void viewClicked(View view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_IMPLICIT

public static final int SHOW_IMPLICIT
See Also:
Constant Field Values

SHOW_FORCED

public static final int SHOW_FORCED
See Also:
Constant Field Values

RESULT_UNCHANGED_SHOWN

public static final int RESULT_UNCHANGED_SHOWN
See Also:
Constant Field Values

RESULT_UNCHANGED_HIDDEN

public static final int RESULT_UNCHANGED_HIDDEN
See Also:
Constant Field Values

RESULT_SHOWN

public static final int RESULT_SHOWN
See Also:
Constant Field Values

RESULT_HIDDEN

public static final int RESULT_HIDDEN
See Also:
Constant Field Values

HIDE_IMPLICIT_ONLY

public static final int HIDE_IMPLICIT_ONLY
See Also:
Constant Field Values

HIDE_NOT_ALWAYS

public static final int HIDE_NOT_ALWAYS
See Also:
Constant Field Values
Method Detail

getInputMethodList

public List<InputMethodInfo> getInputMethodList()

getEnabledInputMethodList

public List<InputMethodInfo> getEnabledInputMethodList()

getEnabledInputMethodSubtypeList

public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi,
                                                                 boolean allowsImplicitlySelectedSubtypes)

showStatusIcon

public void showStatusIcon(IBinder imeToken,
                           String packageName,
                           int iconId)

hideStatusIcon

public void hideStatusIcon(IBinder imeToken)

isFullscreenMode

public boolean isFullscreenMode()

isActive

public boolean isActive(View view)

isActive

public boolean isActive()

isAcceptingText

public boolean isAcceptingText()

displayCompletions

public void displayCompletions(View view,
                               CompletionInfo[] completions)

updateExtractedText

public void updateExtractedText(View view,
                                int token,
                                ExtractedText text)

showSoftInput

public boolean showSoftInput(View view,
                             int flags)

showSoftInput

public boolean showSoftInput(View view,
                             int flags,
                             ResultReceiver resultReceiver)

hideSoftInputFromWindow

public boolean hideSoftInputFromWindow(IBinder windowToken,
                                       int flags)

hideSoftInputFromWindow

public boolean hideSoftInputFromWindow(IBinder windowToken,
                                       int flags,
                                       ResultReceiver resultReceiver)

toggleSoftInputFromWindow

public void toggleSoftInputFromWindow(IBinder windowToken,
                                      int showFlags,
                                      int hideFlags)

toggleSoftInput

public void toggleSoftInput(int showFlags,
                            int hideFlags)

restartInput

public void restartInput(View view)

updateSelection

public void updateSelection(View view,
                            int selStart,
                            int selEnd,
                            int candidatesStart,
                            int candidatesEnd)

viewClicked

public void viewClicked(View view)

isWatchingCursor

public boolean isWatchingCursor(View view)

updateCursor

public void updateCursor(View view,
                         int left,
                         int top,
                         int right,
                         int bottom)

sendAppPrivateCommand

public void sendAppPrivateCommand(View view,
                                  String action,
                                  Bundle data)

setInputMethod

public void setInputMethod(IBinder token,
                           String id)

setInputMethodAndSubtype

public void setInputMethodAndSubtype(IBinder token,
                                     String id,
                                     InputMethodSubtype subtype)

hideSoftInputFromInputMethod

public void hideSoftInputFromInputMethod(IBinder token,
                                         int flags)

showSoftInputFromInputMethod

public void showSoftInputFromInputMethod(IBinder token,
                                         int flags)

showInputMethodPicker

public void showInputMethodPicker()

showInputMethodAndSubtypeEnabler

public void showInputMethodAndSubtypeEnabler(String imiId)

getCurrentInputMethodSubtype

public InputMethodSubtype getCurrentInputMethodSubtype()

setCurrentInputMethodSubtype

public boolean setCurrentInputMethodSubtype(InputMethodSubtype subtype)

getShortcutInputMethodsAndSubtypes

public Map<InputMethodInfo,List<InputMethodSubtype>> getShortcutInputMethodsAndSubtypes()

switchToLastInputMethod

public boolean switchToLastInputMethod(IBinder imeToken)

setAdditionalInputMethodSubtypes

public void setAdditionalInputMethodSubtypes(String imiId,
                                             InputMethodSubtype[] subtypes)

getLastInputMethodSubtype

public InputMethodSubtype getLastInputMethodSubtype()


Copyright © 2008-2012. All Rights Reserved.