# 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,
select UNSPECIFIED to set levels on the default data subscription
(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,
select UNSPECIFIED to set levels on the default data subscription
(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
connection to extend with the network. |
| enableConnectionExtension | Native | bool | This flag is only applicable to LTE. It allows data
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
and downlink. The effective levels may not match the level requested by
the caller in API parameters; that is, the effective level can be higher
than the requested level, which is due to a higher level requested by
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
and downlink. The effective levels may not match the level requested by
the caller in API parameters; that is, the effective level can be higher
than the requested level, which is due to a higher level requested by
other application. |
| ret | Native | int8\_t& | On success this is the actual return value from the API.