# register\_thermal\_zone\_callback

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

Registers a callback to monitor device temperature changes. The registered callback
        is called when the thermal zone gets changes. If the thermal zone switches from one level to
        another, the client will be notified with the changed zone level.

        register_thermal_zone_callback()Copy to clipboard

## Parameters

| **Parameters** | **API type** | **Data type** | **Description** |
| --- | --- | --- | --- |
| report\_thermal\_cb | Java | Ithermal\_cb\_func | This parameter is used to define the callback<br>                                function which will be triggered when the thermal zone gets<br>                                changed. |
| report\_thermal\_cb | Native | qesdk\_Performance\_QAPE\_thermal\_cb\_func | This parameter is used to define the callback<br>                                function which will be triggered when the thermal zone gets<br>                                changed. |
| ret\_val | Native | int8\_t& | On success this is the actual return value from the API.<br><br><br>                                <br><ul class="ul"><br>                                        <li class="li">1: Success</li><br><br>                                        <li class="li">-1: Iqesdk is null or duplicate register thermal<br>                                            callback</li><br><br>                                        <li class="li">-2: Subsystem error</li><br><br>                                    </ul> |
|  |  |  |  |

## Returns

| **Return** | **API type** | **Data Type** | **Description** |
| --- | --- | --- | --- |
| response | Java | int | <ul class="ul"><br>                                    <li class="li">1: Success</li><br><br>                                    <li class="li">-1: Iqesdk is null or duplicate register thermal<br>                                    callback</li><br><br>                                    <li class="li">-2: Subsystem error</li><br><br>                                </ul> |
| response | Native | qesdk\_transaction\_status | See [QESDK transaction status for Native APIs](https://docs.qualcomm.com/doc/80-PK177-134/topic/native_qesdk_class.html) for usage details. Use qesdk\_transaction\_status to confirm API call invocation. If successful, use the `ret` value for the actual API return value object. |
|  |  |  |  |

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

Last Published: Nov 14, 2024

[Previous Topic
release\_thread\_hints](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/qape_release_thread_hints.md) [Next Topic
unregister\_thermal\_zone\_callback](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/qape_unregister_thermal_zone_callback.md)