tencent cloud

Tencent Cloud Super App as a Service

Closing the Mini Program

Download
Focus Mode
Font Size
Last updated: 2024-08-06 15:59:43
Note
Closing the mini program will clear it in memory. When the mini program is reopened, it needs to be loaded into memory again, which can take some time.
Stop the mini program with the given ID.
appId: The ID of the mini program:
Future<void> stopMiniApp(String appId)
Sample code:
_tcmppFlutterPlugin.stopMiniApp(appId!)
Stop all running mini programs:
Future<void> stopAllMiniApp()
Sample code:
_tcmppFlutterPlugin.stopAllMiniApp()


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback