Requires:
MiniKit≥1.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid

Return to the previous mini program. Can be called successfully only when the current mini program was opened by another mini program

PropertyTypeRequiredDescription
NoData to return to the previous mini program; the previous mini program can obtain it in App.onShow
complete() => voidNoCompletion callback (executed on both success and failure)
success() => voidNoCallback on successful API call
fail(params: Object) => voidNoFailure callback
fail callback parameters
PropertyTypeDescription
errorMsgstringError message
errorCodestring | numberError code
Error extension

None