Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.


public class InputDriver
extends Object


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.


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


void emit (InputDriverEvent event)

Emit a single driver event.

event InputDriverEvent: The event to emit.

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.