Android APIs
public static class

EspressoKey.Builder

extends Object
java.lang.Object
   ↳ android.support.test.espresso.action.EspressoKey.Builder

Class Overview

Builder for the EspressoKey class.

Summary

Public Constructors
EspressoKey.Builder()
Public Methods
EspressoKey build()
EspressoKey.Builder withAltPressed(boolean altPressed)
Sets the ALT_ON meta state of the resulting key.
EspressoKey.Builder withCtrlPressed(boolean ctrlPressed)
On Honeycomb and above, sets the CTRL_ON meta state of the resulting key.
EspressoKey.Builder withKeyCode(int keyCode)
EspressoKey.Builder withShiftPressed(boolean shiftPressed)
Sets the SHIFT_ON meta state of the resulting key.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EspressoKey.Builder ()

Public Methods

public EspressoKey build ()

public EspressoKey.Builder withAltPressed (boolean altPressed)

Sets the ALT_ON meta state of the resulting key.

public EspressoKey.Builder withCtrlPressed (boolean ctrlPressed)

On Honeycomb and above, sets the CTRL_ON meta state of the resulting key. On Gingerbread and below, this is a noop.

public EspressoKey.Builder withKeyCode (int keyCode)

public EspressoKey.Builder withShiftPressed (boolean shiftPressed)

Sets the SHIFT_ON meta state of the resulting key.