{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

EspressoKey

public final class EspressoKey


Class that wraps the key code and meta state of the desired key press.

Summary

Nested types

EspressoKey.Builder

Builder for the EspressoKey class.

Public fields

final int
@RemoteMsgField(order = 0)
keyCode
final int

Public constructors

Public methods

int
int
String

Public fields

keyCode

@RemoteMsgField(order = 0)
public final int keyCode

metaState

@RemoteMsgField(order = 1)
public final int metaState

Public constructors

EspressoKey

public final EspressoKey()

Public methods

getKeyCode

public int getKeyCode()

getMetaState

public int getMetaState()

toString

public String toString()