{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class EspressoKey.Builder
Builder for the EspressoKey class.
Public constructors |
|
|---|---|
Builder() |
|
Public functions |
|
|---|---|
EspressoKey! |
build() |
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. |
fun withAltPressed(altPressed: Boolean): EspressoKey.Builder!
Sets the ALT_ON meta state of the resulting key.
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.
fun withShiftPressed(shiftPressed: Boolean): EspressoKey.Builder!
Sets the SHIFT_ON meta state of the resulting key.