# get\_scenario\_support

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

Checks if the predefined OEM scenario is supported.

get_scenario_support()Copy to clipboard

Note: If a scenario is not supported, game/application developers can work directly with the OEM to support predefined/custom scenarios.

## Parameters

| Parameter | API type | Data type | Description |
| --- | --- | --- | --- |
| scenario\_id | Java | String | Scenario (predefined by OEM) to check. OEM should<br>                            implement each scenario. |
| scenario\_id | Native | const char\* | Scenario (predefined by OEM) to check. OEM should<br>                            implement each scenario. |
| 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: OEM scenario available</li><br><br>                                    <li class="li">0: No OEM scenario available</li><br><br>                                    <li class="li">-1: Not supported OEM extension</li><br><br>                                    <li class="li">-2: Failed to establish session; check that <a href="https://docs.qualcomm.com/doc/80-PK177-134/topic/qape_set_pkg.html">set_pkg</a> was called before this API</li><br><br>                                </ul> |
|  |  |  |  |

##  Returns

| Return | API type | Data type | Description |
| --- | --- | --- | --- |
| response | Java | int | <ul class="ul"><br>                                <li class="li">1: OEM scenario available</li><br><br>                                <li class="li">0: No OEM scenario available</li><br><br>                                <li class="li">-1: Not supported OEM extension</li><br><br>                                <li class="li">-2: Failed to establish session; check that <a href="https://docs.qualcomm.com/doc/80-PK177-134/topic/qape_set_pkg.html">set_pkg</a> was called before this API</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:** [OEM extension plugin](https://docs.qualcomm.com/doc/80-PK177-134/topic/oem_extension_plugin.html)

Last Published: Nov 14, 2024

[Previous Topic
OEM extension plugin](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/oem_extension_plugin.md) [Next Topic
start\_scenario](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/oem_start_scenario.md)