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 | |
---|---|
![]()
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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2019-12-27 UTC.",
"state": ""
}