isKeyboardVisible

fun UiDevice.isKeyboardVisible(uiAutomation: UiAutomation = InstrumentationRegistry.getInstrumentation().uiAutomation): Boolean(source)

Returns whether the on-screen keyboard is shown, from the window list rather than shell output.

Enables interactive-window retrieval, which stays on for the rest of the test process.

Return

true when an input method window is on screen.

Parameters

uiAutomation

The automation connection that lists the windows.