HomeDocs
Skip to main content

dlt.exitMiniProgram

Introduction

Exit the current mini program. It must be called after a user action.

Usage Restrictions

Supported by the base library version 4.0.0 or higher.

Parameters

Object object

PropertyTypeDefaultRequiredDescription
successfunctionNoCallback function for a successful API call.
failfunctionNoCallback function for a failed API call.
completefunctionNoCallback function that will be executed when the API call ends (both success and failure).

Sample Code

// pages/index/index.js

Page({
handleTap() {
dlt.exitMiniProgram({
success: function (res) {},
fail: function (res) {},
complete: function (res) {},
});
},
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.