HomeDocs
Skip to main content

UpdateManager.onCheckForUpdate

Introduction

Listen for events that request checking for updates from the backend. The mini-program automatically checks for updates every time it starts (including hot restarts), without the need for developers to trigger it manually.

Parameters

None

Sample Code

Page({
onLoad() {
const updateManager = dlt.getUpdateManager();
updateManager.onCheckForUpdate(function (res) {});
},
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.