Closing mini programs
Note:
Closing a mini program means only closing its page, switching the mini program to the background. It remains in memory, allowing for a quick relaunch with minimal delay.
Note:
1. A mini program remains active in memory for 10 minutes after closing.
2. Up to 3 mini programs can remain active simultaneously.
1. Closing a specific mini program
- (void)closeMiniAppWithAppID:(NSString *)appID;
2. Closing current mini program
- (void)closeCurrentApplet;
3. Closing all running mini programs
/// Close all running mini programs in memory
- (void)closeAllApplications;
Terminating mini programs
Note:
Terminating a mini program means clearing it from memory. The next time it is opened, it will need to be reloaded into memory, which takes more time.
1. Terminating the specified mini program
- (void)terminateMiniAppWithAppID:(NSString *)appID;
2. Terminating the current mini program
- (void)terminateCurrentApplet.
3. Terminate all mini programs.
- (void)terminateAllApplications.
Was this page helpful?