# register\_event\_callback

Source: [https://docs.qualcomm.com/doc/80-PK177-134/topic/register_event_callback.html](https://docs.qualcomm.com/doc/80-PK177-134/topic/register_event_callback.html)

Registers a callback interface, `Ievent_callback_type` for sensor events. The registered callback is called whenever the sensor events are generated from the sensor that client activated.

register_event_callback()Copy to clipboard

## Parameters

| Parameters | Data type | Description |
| --- | --- | --- |
| sensor\_session\_id | int | Sensor’s session ID. |
| cb | Ierror\_callback\_type | Callback function that will be triggered when an event is<br>                                    available.<br><br><br>                                <br>Event callbacks are interfaces in the ISensorsCBs interface. The<br>                                        `onValues()` method is triggered by the QESDK<br>                                    sensor manager for handling sensor events from the sensor<br>                                    subsystem; see [Event callbacks](https://docs.qualcomm.com/doc/80-PK177-134/topic/ievent_callback_type_onvalues1.html). |

**Parent Topic:** [Sensor subsystem APIs](https://docs.qualcomm.com/doc/80-PK177-134/topic/sensor_functions.html)

Last Published: Nov 14, 2024

[Previous Topic
send\_request](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/send_request.md) [Next Topic
register\_error\_callback](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/register_error_callback.md)