@Implements(value=android.view.inputmethod.InputMethodManager.class) public class ShadowInputMethodManager extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ShadowInputMethodManager.SoftInputVisibilityChangeHandler
Handler for receiving soft input visibility changed event.
|
Constructor and Description |
---|
ShadowInputMethodManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
displayCompletions(android.view.View view,
android.view.inputmethod.CompletionInfo[] completions) |
protected void |
focusIn(android.view.View view) |
protected boolean |
hideSoftInputFromWindow(android.os.IBinder windowToken,
int flags) |
protected boolean |
hideSoftInputFromWindow(android.os.IBinder windowToken,
int flags,
android.os.ResultReceiver resultReceiver) |
protected boolean |
isActive() |
protected boolean |
isActive(android.view.View view) |
protected boolean |
isFullscreenMode() |
boolean |
isSoftInputVisible() |
protected void |
onViewDetachedFromWindow(android.view.View view) |
protected static android.view.inputmethod.InputMethodManager |
peekInstance() |
static void |
reset() |
protected void |
restartInput(android.view.View view) |
void |
setSoftInputVisibilityHandler(ShadowInputMethodManager.SoftInputVisibilityChangeHandler visibilityChangeHandler) |
protected boolean |
showSoftInput(android.view.View view,
int flags) |
protected boolean |
showSoftInput(android.view.View view,
int flags,
android.os.ResultReceiver resultReceiver) |
protected void |
toggleSoftInput(int showFlags,
int hideFlags) |
@Implementation protected boolean showSoftInput(android.view.View view, int flags)
@Implementation protected boolean showSoftInput(android.view.View view, int flags, android.os.ResultReceiver resultReceiver)
@Implementation protected boolean hideSoftInputFromWindow(android.os.IBinder windowToken, int flags)
@Implementation protected boolean hideSoftInputFromWindow(android.os.IBinder windowToken, int flags, android.os.ResultReceiver resultReceiver)
@Implementation protected void toggleSoftInput(int showFlags, int hideFlags)
public boolean isSoftInputVisible()
public void setSoftInputVisibilityHandler(ShadowInputMethodManager.SoftInputVisibilityChangeHandler visibilityChangeHandler)
@Implementation protected void restartInput(android.view.View view)
@Implementation protected boolean isActive(android.view.View view)
@Implementation protected boolean isActive()
@Implementation protected boolean isFullscreenMode()
@Implementation protected void focusIn(android.view.View view)
@Implementation(minSdk=23) protected void onViewDetachedFromWindow(android.view.View view)
@Implementation protected void displayCompletions(android.view.View view, android.view.inputmethod.CompletionInfo[] completions)
@Implementation(maxSdk=22) protected static android.view.inputmethod.InputMethodManager peekInstance()
@Resetter public static void reset()