tencent cloud

All product documents
Tencent Cloud Super App as a Service
Closing Mini Programs
Last updated: 2024-11-21 17:26:33
Closing Mini Programs
Last updated: 2024-11-21 17:26:33
The 'closing mini program' API terminates all activities of a mini program and ends its process.

Closing a specific mini program

API description: This API allows you to close a mini program with a specific ID.
/**
* Terminate a mini program
*
* @param context
* @param appId
*/
public static void stopMiniApp(Context context, String appId)
Sample code:
TmfMiniSdk.stopMiniApp(context,appId);

Closing all mini programs

API description: This API allows you to close all mini programs.
/**
* Terminate all mini programs
*
* @param context
*/
public static void stopAllMiniApp(Context context)
Sample code:
TmfMiniSdk.stopAllMiniApp(context);

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon