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.
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.
public static void stopAllMiniApp(Context context)
Sample code:
TmfMiniSdk.stopAllMiniApp(context);
Was this page helpful?