tencent cloud

Feedback

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);
    
    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 avaliable.

    7x24 Phone Support