EspressoKey.Builder
Note: This library does not have Kotlin reference docs, but you can
call the Java API from Kotlin source code. To learn more, see Kotlin's
interop documentation .
public
static
class
EspressoKey.Builder
extends Object
Builder for the EspressoKey class.
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
Builder
public Builder ()
Public methods
withAltPressed
public EspressoKey.Builder withAltPressed (boolean altPressed)
Sets the ALT_ON meta state of the resulting key.
Parameters
altPressed
boolean
withCtrlPressed
public EspressoKey.Builder withCtrlPressed (boolean ctrlPressed)
On Honeycomb and above, sets the CTRL_ON meta state of the resulting key. On Gingerbread and
below, this is a noop.
Parameters
ctrlPressed
boolean
withShiftPressed
public EspressoKey.Builder withShiftPressed (boolean shiftPressed)
Sets the SHIFT_ON meta state of the resulting key.
Parameters
shiftPressed
boolean