public static class EspressoKey.Builder
extends java.lang.Object
Constructor and Description |
---|
EspressoKey.Builder() |
Modifier and Type | Method and Description |
---|---|
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.
|
public EspressoKey.Builder withKeyCode(int keyCode)
public EspressoKey.Builder withShiftPressed(boolean shiftPressed)
public EspressoKey.Builder withCtrlPressed(boolean ctrlPressed)
public EspressoKey.Builder withAltPressed(boolean altPressed)
public EspressoKey build()