HomeDocs
Skip to main content

dlt.showLoading

Introduction

Displays a loading prompt.

Parameters

Object object

PropertyTypeDefaultRequiredDescription
titlestringNoContent of the prompt
durationnumber3500NoDisplay duration of the prompt
maskbooleantrueNoWhether to show a transparent mask to prevent touch-through
successfunctionNoCallback function for a successful interface call
failfunctionNoCallback function for a failed interface call
completefunctionNoCallback function for the completion of the interface call (executed regardless of success or failure)

Sample Code

dlt.showLoading({
success(res) {
console.log('success: ', res);
},
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.