sud.exitMiniProgram
JS
sud.exitMiniProgram(Object object)Exits the current minigame.
Parameters
- Object object: Input parameters; see the table below for specific properties
Properties of object:
| Property | Type | Required | Description |
|---|---|---|---|
| data | string/object | No | Data returned when exiting the game, handed off to the app for processing; object type will be converted to JSON |
| success | function | No | Callback function for a successful API call |
| fail | function | No | Callback function for a failed API call |
| complete | function | No | Callback function for the completion of the API call |
