# setReportingCriteria

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

Sets the session's reporting criteria (periodic or threshold).

    setReportingCriteria()Copy to clipboard

If the client must switch from one reporting type to another, send a [RESET](https://docs.qualcomm.com/doc/80-PK177-134/topic/lce_enum_reporting_action.html) action using [performReportingAction](https://docs.qualcomm.com/doc/80-PK177-134/topic/lce_perform_reporting_action.html).

Threshold-based reporting can set independent values per each access network. When new thresholds are sent for the same access network, existing thresholds for that access network are overwritten. Report generation starts on the first call to [setReportingCriteria](https://docs.qualcomm.com/doc/80-PK177-134/topic/lce_set_reporting_criteria.html).

In periodic reporting, the report measured at the end of the period is reported to the
      application.

## Parameters

| Parameter | API type | Data type | Description |
| --- | --- | --- | --- |
| hysteresisMs | Java | long | A hysteresis time in milliseconds to prevent flapping during threshold reporting.<br>                  A 0 value uses the default modem hysteresis value.<br><br><br>                <br>For periodic reporting, set this value to 0. |
| hysteresisMs | Native | uint32\_t | A hysteresis time in milliseconds to prevent flapping during threshold reporting.<br>                  A 0 value uses the default modem hysteresis value.<br><br><br>                <br>For periodic reporting, set this value to 0. |
| thresholdsDownlinkKbps | Java | ArrayList&lt;Long&gt; | A vector of trigger thresholds in kbps for downlink reports.<br><br><br>                <br>For periodic reporting, this must be an empty vector. |
| thresholdsDownlinkKbps | Native | vector&lt;uint32\_t&gt; | A vector of trigger thresholds in kbps for downlink reports.<br><br><br>                <br>For periodic reporting, this must be an empty vector. |
| thresholdsUplinkKbps | Java | ArrayList&lt;Long&gt; | A vector of trigger thresholds in kbps for uplink reports.<br><br><br>                <br>For periodic reporting, this must be an empty vector. |
| thresholdsUplinkKbps | Native | vector&lt;uint32\_t&gt; | A vector of trigger thresholds in kbps for uplink reports.<br><br><br>                <br>For periodic reporting, this must be an empty vector. |
| [accessNetwork](https://docs.qualcomm.com/doc/80-PK177-134/topic/lce_enum_access_network_type.html) | Java | accessNetworkType | A vector of trigger thresholds in kbps for uplink reports.<br><br><br>                <br>For periodic reporting, this must be an empty vector. |
| [accessNetwork](https://docs.qualcomm.com/doc/80-PK177-134/topic/lce_enum_access_network_type.html) | Native | lce\_accessNetworkType | A vector of trigger thresholds in kbps for uplink reports.<br><br><br>                <br>For periodic reporting, this must be an empty vector. |
| ReportingPeriod | Java | long | Time in milliseconds. Period at which the uplink throughput information is<br>                  calculated.<br><br><br>                <br>For threshold-based reporting, set this value to 0. |
| ReportingPeriod | Native | uint32\_t | Time in milliseconds. Period at which the uplink throughput information is<br>                  calculated.<br><br><br>                <br>For threshold-based reporting, set this value to 0. |
| [cb](https://docs.qualcomm.com/doc/80-PK177-134/topic/lce_iasync_result.html) | Java | IasyncResult | `IasyncResult` callback that provides the success or failure<br>                  status, and error string.<br><br><br>                <br>Possible returns are as follows:<br><br><br>                <ul class="ul" id="concept.dita_2e192886-3db7-4088-82d7-6b0a57848151__ul_hjb_gzw_m5b"><br>                  <li class="li">INVALID_ARGUMENTS</li><br><br>                  <li class="li">REPORTING_CRITERIA_TYPE_MISMATCH</li><br><br>                </ul> |
| [cb](https://docs.qualcomm.com/doc/80-PK177-134/topic/lce_iasync_result.html) | Native | lce\_asyncResult | `IasyncResult` callback that provides the success or failure<br>                  status, and error string.<br><br><br>                <br>Possible returns are as follows:<br><br><br>                <ul class="ul" id="concept.dita_2e192886-3db7-4088-82d7-6b0a57848151__ul_hjb_gzw_m5b"><br>                  <li class="li">INVALID_ARGUMENTS</li><br><br>                  <li class="li">REPORTING_CRITERIA_TYPE_MISMATCH</li><br><br>                </ul> |
| 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="concept.dita_2e192886-3db7-4088-82d7-6b0a57848151__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:** [LCE subsystem APIs](https://docs.qualcomm.com/doc/80-PK177-134/topic/lce_functions.html)

Last Published: Nov 14, 2024

[Previous Topic
registerForEstimationReports](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/lce_register_for_estimation_reports.md) [Next Topic
getLastEstimationReport](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/lce_get_last_estimation_report.md)