Package org.robolectric.shadows
Class ShadowInputMethodManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowInputMethodManager
-
@Implements(android.view.inputmethod.InputMethodManager.class) public class ShadowInputMethodManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceShadowInputMethodManager.SoftInputVisibilityChangeHandlerHandler for receiving soft input visibility changed event.
-
Constructor Summary
Constructors Constructor Description ShadowInputMethodManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddisplayCompletions(android.view.View view, android.view.inputmethod.CompletionInfo[] completions)protected voidfocusIn(android.view.View view)protected booleanhideSoftInputFromWindow(android.os.IBinder windowToken, int flags)protected booleanhideSoftInputFromWindow(android.os.IBinder windowToken, int flags, android.os.ResultReceiver resultReceiver)protected booleanisActive()protected booleanisActive(android.view.View view)protected booleanisFullscreenMode()booleanisSoftInputVisible()protected voidonViewDetachedFromWindow(android.view.View view)protected static android.view.inputmethod.InputMethodManagerpeekInstance()static voidreset()protected voidrestartInput(android.view.View view)voidsetSoftInputVisibilityHandler(ShadowInputMethodManager.SoftInputVisibilityChangeHandler visibilityChangeHandler)protected booleanshowSoftInput(android.view.View view, int flags)protected booleanshowSoftInput(android.view.View view, int flags, android.os.ResultReceiver resultReceiver)protected booleanstartInputInner(int startInputReason, android.os.IBinder windowGainingFocus, int startInputFlags, int softInputMode, int windowFlags)protected voidtoggleSoftInput(int showFlags, int hideFlags)
-
-
-
Method Detail
-
showSoftInput
@Implementation protected boolean showSoftInput(android.view.View view, int flags)
-
showSoftInput
@Implementation protected boolean showSoftInput(android.view.View view, int flags, android.os.ResultReceiver resultReceiver)
-
hideSoftInputFromWindow
@Implementation protected boolean hideSoftInputFromWindow(android.os.IBinder windowToken, int flags)
-
hideSoftInputFromWindow
@Implementation protected boolean hideSoftInputFromWindow(android.os.IBinder windowToken, int flags, android.os.ResultReceiver resultReceiver)
-
toggleSoftInput
@Implementation protected void toggleSoftInput(int showFlags, int hideFlags)
-
isSoftInputVisible
public boolean isSoftInputVisible()
-
setSoftInputVisibilityHandler
public void setSoftInputVisibilityHandler(ShadowInputMethodManager.SoftInputVisibilityChangeHandler visibilityChangeHandler)
-
restartInput
@Implementation protected void restartInput(android.view.View view)
-
isActive
@Implementation protected boolean isActive(android.view.View view)
-
isActive
@Implementation protected boolean isActive()
-
isFullscreenMode
@Implementation protected boolean isFullscreenMode()
-
focusIn
@Implementation protected void focusIn(android.view.View view)
-
onViewDetachedFromWindow
@Implementation(minSdk=23) protected void onViewDetachedFromWindow(android.view.View view)
-
displayCompletions
@Implementation protected void displayCompletions(android.view.View view, android.view.inputmethod.CompletionInfo[] completions)
-
peekInstance
@Implementation(maxSdk=22) protected static android.view.inputmethod.InputMethodManager peekInstance()
-
startInputInner
@Implementation(minSdk=24) protected boolean startInputInner(int startInputReason, android.os.IBinder windowGainingFocus, int startInputFlags, int softInputMode, int windowFlags)
-
reset
@Resetter public static void reset()
-
-