public class BatchedInputEventReceiver extends InputEventReceiver
InputEventReceiver
, but batches events to vsync boundaries when possible.InputEventReceiver.Factory
Constructor and Description |
---|
BatchedInputEventReceiver(InputChannel inputChannel,
Looper looper,
Choreographer choreographer) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the receiver.
|
void |
onBatchedInputEventPending()
Called when a batched input event is pending.
|
consumeBatchedInputEvents, finalize, finishInputEvent, onInputEvent
public BatchedInputEventReceiver(InputChannel inputChannel, Looper looper, Choreographer choreographer)
public void onBatchedInputEventPending()
InputEventReceiver
InputEventReceiver.consumeBatchedInputEvents(long)
or
an event is received that ends the batch and causes it to be consumed
immediately (such as a pointer up event).onBatchedInputEventPending
in class InputEventReceiver
public void dispose()
InputEventReceiver
dispose
in class InputEventReceiver