HomeDocs
Skip to main content

dlt.getUpdateManager

Introduction

Retrieve the globally unique version update manager used to manage updates for the mini-program.

Parameters

None

Sample Code

Page({
onLoad() {
const updateManager = dlt.getUpdateManager();
// 1. Automated update process
updateManager.onCheckForUpdate(function (res) {
// Callback after requesting new version information
console.log(res.hasUpdate);
});
},
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.