navigateBackMiniProgram
Requires:
MiniKit≥1.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Method signature
navigateBackMiniProgram(params: )Description
Return to the previous mini program. Can be called successfully only when the current mini program was opened by another mini program
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
extraData | Record<string, any> | No | Data to return to the previous mini program; the previous mini program can obtain it in App.onShow |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | () => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None