lightbulb_outline Please take our October 2018 developer survey. Start survey

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 InputDriver objects. 

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.