Package: android.frameworks.sensorservice@1.0

IEventQueueCallback

interface IEventQueueCallback

An IEventQueueCallback describes the callback that is called upon any events.

Methods

onEvent

oneway onEvent (Event event)

When any event is obtained from the sensor, this function must be called with the event data.

Implementation of this function must finish in short time predictably.It must never block or run for extended period of time.It must offload heavy computation to a separate thread.

Details
RPC mode
oneway
Parameters
event
the event data.