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();
Was this page helpful?