Skip to content

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:

PropertyTypeRequiredDescription
datastring/objectNoData returned when exiting the game, handed off to the app for processing; object type will be converted to JSON
successfunctionNoCallback function for a successful API call
failfunctionNoCallback function for a failed API call
completefunctionNoCallback function for the completion of the API call