# stop\_scenario

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

Stops the OEM scenario.

stop_scenario()Copy to clipboard

Note: OEM must implement this function in libqape\_oem\_ext.so.

## Parameters

| **Parameter** | **API type** | **Data type** | **Description** |
| --- | --- | --- | --- |
| get\_scenario\_support | Java | string | Scenario (predefined by OEM) to check. OEM should<br>                                implement each scenario. |
| Native | const char\* |
| 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">0: Success</li><br><br>                                        <li class="li">-1: Not supported OEM extension</li><br><br>                                        <li class="li">-2: Failed to establish session; check that set_pkg was<br>                                            called before this API</li><br><br>                                        <li class="li">-3: Scenario not applied before. No action taken</li><br><br>                                    </ul> |

##  Returns

| **Return** | **API type** | **Data Type** | **Description** |
| --- | --- | --- | --- |
| response | Java | int | <ul class="ul"><br>                                    <li class="li">0: Success</li><br><br>                                    <li class="li">-1: Not supported OEM extension</li><br><br>                                    <li class="li">-2: Failed to establish session; check that set_pkg was<br>                                    called before this API</li><br><br>                                    <li class="li">-3: Scenario not applied before. No action taken</li><br><br>                            </ul> |
| Native | qesdk\_transaction\_status | See QESDK transaction status for Native APIs 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

Last Published: Nov 14, 2024

Previous Topic
 
start\_scenario Next Topic

QAPE subsystem callback interfaces