InputDriver
public
class
InputDriver
extends Object
java.lang.Object | |
↳ | com.google.android.things.userdriver.input.InputDriver |
Driver to interface with user-connected input devices. User defined drivers should instantiate this class and call the appropriate emit method whenever input events are ready.
Summary
Nested classes | |
---|---|
class |
InputDriver.Builder
Builder class for |
Public methods | |
---|---|
void
|
emit(InputDriverEvent event)
Emit a single driver event. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public methods
emit
void emit (InputDriverEvent event)
Emit a single driver event.
Parameters | |
---|---|
event |
InputDriverEvent : The event to emit. |
Throws | |
---|---|
IllegalArgumentException |
if the given key is not in the list of keys configured for this driver. IllegalStateException if the driver is not yet registered with the UserDriverManager. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2019-12-27 UTC.
[null,null,["Last updated 2019-12-27 UTC."],[],[]]