public class PointerEventDispatcher extends InputEventReceiver
InputEventReceiver.Factory
Constructor and Description |
---|
PointerEventDispatcher(InputChannel inputChannel) |
Modifier and Type | Method and Description |
---|---|
void |
onInputEvent(InputEvent event)
Called when an input event is received.
|
void |
registerInputEventListener(WindowManagerPolicy.PointerEventListener listener)
Add the specified listener to the list.
|
void |
unregisterInputEventListener(WindowManagerPolicy.PointerEventListener listener)
Remove the specified listener from the list.
|
consumeBatchedInputEvents, dispose, finalize, finishInputEvent, onBatchedInputEventPending
public PointerEventDispatcher(InputChannel inputChannel)
public void onInputEvent(InputEvent event)
InputEventReceiver
InputEventReceiver.finishInputEvent(android.view.InputEvent, boolean)
to indicate whether the event was handled. No new input events will be received
until InputEventReceiver.finishInputEvent(android.view.InputEvent, boolean)
is called.onInputEvent
in class InputEventReceiver
event
- The input event that was received.public void registerInputEventListener(WindowManagerPolicy.PointerEventListener listener)
listener
- The listener to add.public void unregisterInputEventListener(WindowManagerPolicy.PointerEventListener listener)
listener
- The listener to remove.