EspressoKey.Builder

public class EspressoKey.Builder


Builder for the EspressoKey class.

Summary

Public constructors

Public methods

EspressoKey
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 constructors

Builder

public Builder()

Public methods

build

public EspressoKey build()

withAltPressed

public EspressoKey.Builder withAltPressed(boolean altPressed)

Sets the ALT_ON meta state of the resulting key.

withCtrlPressed

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.

withKeyCode

public EspressoKey.Builder withKeyCode(int keyCode)

withShiftPressed

public EspressoKey.Builder withShiftPressed(boolean shiftPressed)

Sets the SHIFT_ON meta state of the resulting key.