EspressoKey.Builder


class EspressoKey.Builder


Builder for the EspressoKey class.

Summary

Public constructors

Public functions

EspressoKey!
EspressoKey.Builder!
withAltPressed(altPressed: Boolean)

Sets the ALT_ON meta state of the resulting key.

EspressoKey.Builder!
withCtrlPressed(ctrlPressed: Boolean)

On Honeycomb and above, sets the CTRL_ON meta state of the resulting key.

EspressoKey.Builder!
withKeyCode(keyCode: Int)
EspressoKey.Builder!
withShiftPressed(shiftPressed: Boolean)

Sets the SHIFT_ON meta state of the resulting key.

Public constructors

Builder

Builder()

Public functions

build

fun build(): EspressoKey!

withAltPressed

fun withAltPressed(altPressed: Boolean): EspressoKey.Builder!

Sets the ALT_ON meta state of the resulting key.

withCtrlPressed

fun withCtrlPressed(ctrlPressed: Boolean): EspressoKey.Builder!

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

withKeyCode

fun withKeyCode(keyCode: Int): EspressoKey.Builder!

withShiftPressed

fun withShiftPressed(shiftPressed: Boolean): EspressoKey.Builder!

Sets the SHIFT_ON meta state of the resulting key.