tencent cloud

Tencent Cloud Super App as a Service

Closing Mini Programs

PDF
Focus Mode
Font Size
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);


Help and Support

Was this page helpful?

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

Feedback