EspressoKey.Builder

public static class EspressoKey.Builder
extends Object

java.lang.Object
   ↳ android.support.test.espresso.action.EspressoKey.Builder


EspressoKey类的生成器。

Summary

Public constructors

EspressoKey.Builder()

Public methods

EspressoKey build()
EspressoKey.Builder withAltPressed(boolean altPressed)

设置结果键的ALT_ON元状态。

EspressoKey.Builder withCtrlPressed(boolean ctrlPressed)

在Honeycomb及其以上版本中,设置生成的密钥的CTRL_ON元状态。

EspressoKey.Builder withKeyCode(int keyCode)
EspressoKey.Builder withShiftPressed(boolean shiftPressed)

设置结果键的SHIFT_ON元状态。

Inherited methods

From class java.lang.Object

Public constructors

EspressoKey.Builder

EspressoKey.Builder ()

Public methods

build

EspressoKey build ()

Returns
EspressoKey

withAltPressed

EspressoKey.Builder withAltPressed (boolean altPressed)

设置结果键的ALT_ON元状态。

Parameters
altPressed boolean
Returns
EspressoKey.Builder

withCtrlPressed

EspressoKey.Builder withCtrlPressed (boolean ctrlPressed)

在Honeycomb及其以上版本中,设置生成的密钥的CTRL_ON元状态。 在姜饼和下面,这是一个noop。

Parameters
ctrlPressed boolean
Returns
EspressoKey.Builder

withKeyCode

EspressoKey.Builder withKeyCode (int keyCode)

Parameters
keyCode int
Returns
EspressoKey.Builder

withShiftPressed

EspressoKey.Builder withShiftPressed (boolean shiftPressed)

设置结果键的SHIFT_ON元状态。

Parameters
shiftPressed boolean
Returns
EspressoKey.Builder