# setLevel

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

Sets the uplink and downlink latency levels on the device. It also provides an option
        to enable the connection extension.

        setLevel()Copy to clipboard

## Parameters

| Parameter | API type | Data type | Description |
| --- | --- | --- | --- |
| slotId | Java | slotId | Specify [slotId](https://docs.qualcomm.com/doc/80-PK177-134/topic/slotid.html) to set levels on a SIM slot ID. Else,<br>                            select UNSPECIFIED to set levels on the default data subscription<br>                            (DDS). |
| slotId | Native | llm\_slotId | Specify [slotId](https://docs.qualcomm.com/doc/80-PK177-134/topic/slotid.html) to set levels on a SIM slot ID. Else,<br>                            select UNSPECIFIED to set levels on the default data subscription<br>                            (DDS). |
| uplink | Java | level | Latency [level](https://docs.qualcomm.com/doc/80-PK177-134/topic/level.html) to set on uplink. |
| uplink | Native | llm\_level | Latency [level](https://docs.qualcomm.com/doc/80-PK177-134/topic/level.html) to set on uplink. |
| downlink | Java | level | Latency [level](https://docs.qualcomm.com/doc/80-PK177-134/topic/level.html) to set on downlink. |
| downlink | Native | llm\_level | Latency [level](https://docs.qualcomm.com/doc/80-PK177-134/topic/level.html) to set on downlink. |
| enableConnectionExtension | Java | boolean | This flag is only applicable to LTE. It allows data<br>                            connection to extend with the network. |
| enableConnectionExtension | Native | bool | This flag is only applicable to LTE. It allows data<br>                            connection to extend with the network. |
| cb | Java | IeffectiveLevels | Async callback to report the [Effective levels](https://docs.qualcomm.com/doc/80-PK177-134/topic/ieffective_levels.html) for uplink<br>                            and downlink. The effective levels may not match the level requested by<br>                            the caller in API parameters; that is, the effective level can be higher<br>                            than the requested level, which is due to a higher level requested by<br>                            other application. |
| cb | Native | llm\_effectiveLevels | Async callback to report the [Effective levels](https://docs.qualcomm.com/doc/80-PK177-134/topic/ieffective_levels.html) for uplink<br>                            and downlink. The effective levels may not match the level requested by<br>                            the caller in API parameters; that is, the effective level can be higher<br>                            than the requested level, which is due to a higher level requested by<br>                            other application. |
| ret | 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</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" id="setlevel__ul_sy1_t4x_vyb_spyrz_09-20-23-1542-23-993"><br>                                    <li class="li">1: Success</li><br><br>                                    <li class="li">-1: Iqesdk is NULL</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:** [LLM subsystem APIs](https://docs.qualcomm.com/doc/80-PK177-134/topic/llm_functions.html)

Last Published: Nov 14, 2024

[Previous Topic
Constructor](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/llm_creator.md) [Next Topic
prioritizeDefaultDataSubscription](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/prioritizedefaultdatasubscription.md)