public class

EspressoKey.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.test.espresso.action.EspressoKey.Builder

Overview

Builder for the EspressoKey class.

Summary

Constructors
publicBuilder()

Methods
public EspressoKeybuild()

public EspressoKey.BuilderwithAltPressed(boolean altPressed)

Sets the ALT_ON meta state of the resulting key.

public EspressoKey.BuilderwithCtrlPressed(boolean ctrlPressed)

Sets the CTRL_ON meta state of the resulting key.

public EspressoKey.BuilderwithKeyCode(int keyCode)

public EspressoKey.BuilderwithShiftPressed(boolean shiftPressed)

Sets the SHIFT_ON meta state of the resulting key.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public EspressoKey.Builder withKeyCode(int keyCode)

public EspressoKey.Builder withShiftPressed(boolean shiftPressed)

Sets the SHIFT_ON meta state of the resulting key.

public EspressoKey.Builder withCtrlPressed(boolean ctrlPressed)

Sets the CTRL_ON meta state of the resulting key.

public EspressoKey.Builder withAltPressed(boolean altPressed)

Sets the ALT_ON meta state of the resulting key.

public EspressoKey build()