EspressoKey.Builder
public static class EspressoKey.Builder
extends Object
java.lang.Object |
↳ |
android.support.test.espresso.action.EspressoKey.Builder |
EspressoKey类的生成器。
Summary
Inherited methods |
From class java.lang.Object
Object |
clone() |
boolean |
equals(Object arg0) |
void |
finalize() |
final Class<?> |
getClass() |
int |
hashCode() |
final void |
notify() |
final void |
notifyAll() |
String |
toString() |
final void |
wait(long arg0, int arg1) |
final void |
wait(long arg0) |
final void |
wait() |
|
Public constructors
EspressoKey.Builder
EspressoKey.Builder ()
Public methods
withAltPressed
EspressoKey.Builder withAltPressed (boolean altPressed)
设置结果键的ALT_ON元状态。
Parameters |
altPressed |
boolean
|
withCtrlPressed
EspressoKey.Builder withCtrlPressed (boolean ctrlPressed)
在Honeycomb及其以上版本中,设置生成的密钥的CTRL_ON元状态。 在姜饼和下面,这是一个noop。
Parameters |
ctrlPressed |
boolean
|
withShiftPressed
EspressoKey.Builder withShiftPressed (boolean shiftPressed)
设置结果键的SHIFT_ON元状态。
Parameters |
shiftPressed |
boolean
|