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

EspressoKey

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 constructors

Public functions

String!

Public properties

Int
@RemoteMsgField(order = 0)
keyCode
Int

Public constructors

EspressoKey

EspressoKey()

Public functions

toString

fun toString(): String!

Public properties

keyCode

@RemoteMsgField(order = 0)
val keyCodeInt

metaState

@RemoteMsgField(order = 1)
val metaStateInt