Summary: Ctors | Methods | Inherited Methods | [Expand All]

# EspressoKey.Builder

`public static class EspressoKey.Builder`
`extends Object` ``

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

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.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()`
`boolean` | `equals(Object arg0)`
`void` | `finalize()`
`final Class<?>` | `getClass()`
`int` | `hashCode()`
`final void` | `notify()`
`final void` | `notifyAll()`
`String` | `toString()`
`final void` | `wait(long arg0, int arg1)`
`final void` | `wait(long arg0)`
`final void` | `wait()`

## Public constructors

### EspressoKey.Builder

    EspressoKey.Builder ()

## Public methods

### build

    EspressoKey build ()

Returns
`EspressoKey` |

### withAltPressed

    EspressoKey.Builder withAltPressed (boolean altPressed)

Sets the ALT_ON meta state of the resulting key.

Parameters
`altPressed` | `boolean`

Returns
`EspressoKey.Builder` |

### withCtrlPressed

    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.

Parameters
`ctrlPressed` | `boolean`

Returns
`EspressoKey.Builder` |

### withKeyCode

    EspressoKey.Builder withKeyCode (int keyCode)

Parameters
`keyCode` | `int`

Returns
`EspressoKey.Builder` |

### withShiftPressed

    EspressoKey.Builder withShiftPressed (boolean shiftPressed)

Sets the SHIFT_ON meta state of the resulting key.

Parameters
`shiftPressed` | `boolean`

Returns
`EspressoKey.Builder` |

- ## Interfaces

  - AdapterViewProtocol
  - AdapterViewProtocol.DataFunction
  - CoordinatesProvider
  - PrecisionDescriber
  - Swiper
  - Tapper

- ## Classes

  - AdapterDataLoaderAction
  - AdapterViewProtocol.AdaptedData
  - AdapterViewProtocol.AdaptedData.Builder
  - AdapterViewProtocols
  - CloseKeyboardAction
  - EditorAction
  - EspressoKey
  - EspressoKey.Builder
  - GeneralClickAction
  - GeneralSwipeAction
  - KeyEventAction
  - MotionEvents
  - MotionEvents.DownResultHolder
  - OpenLinkAction
  - ReplaceTextAction
  - ScrollToAction
  - TypeTextAction
  - ViewActions

- ## Enums

  - GeneralLocation
  - Press
  - Swipe
  - Swiper.Status
  - Tap
  - Tapper.Status