# Event callbacks 

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

This callback is called whenever sensor data is available. The actual sensor data encoded in proto message is delivered through this callback. The client needs to decode proto\_encoded\_message to get sensor data. See [Encoding and decoding protobuf messages](https://docs.qualcomm.com/doc/80-PK177-134/topic/encoding_and_decoding_protobuf_messages.html) for more information.

Ievent_callback_type.onValues()Copy to clipboard

## Parameters

| Parameter | Data type | Description |
| --- | --- | --- |
| proto\_encoded\_message | byte[] | Proto encoded message containing sensor data. |
| sensor\_session\_id | int | Sensor’s session ID. |

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

Last Published: Nov 14, 2024

[Previous Topic
Error callback](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/ierror_callback_type_onvalues.md) [Next Topic
Activity recognition](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/activity_recognition.md)