public class CloseKeyboardAction extends ViewAction
Modifier and Type | Field and Description |
---|---|
static CloseKeyboardAction |
DEFAULT_INSTANCE
Defaults timeoutMillis to 2000
|
Constructor and Description |
---|
CloseKeyboardAction(long timeoutMillis,
long keyboardDismissalDelayMillis) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
perform(android.view.View view,
UiElement element)
Performs the action on the associated
View . |
java.lang.String |
toString() |
perform
getTimeoutMillis
public static final CloseKeyboardAction DEFAULT_INSTANCE
public CloseKeyboardAction(long timeoutMillis, long keyboardDismissalDelayMillis)
timeoutMillis
- the value returned by BaseAction.getTimeoutMillis()
keyboardDismissalDelayMillis
- a
delay for the soft keyboard to finish closingprotected boolean perform(android.view.View view, UiElement element)
ViewAction
View
.perform
in class ViewAction
view
- the View associated with the UiElementelement
- the UiElement to perform the action on