# 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.



| | | | | | ## Returns | **Return** | **API type** | **Data type** | **Description** | | --- | --- | --- | --- | | response | Java | int | | | 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)