HomeDocs
Skip to main content

dlt.queryShortcutExists

Introduction

This API is used to query whether the mini-program has been added to the desktop.

Parameters

Object object

PropertyTypeDefaultRequiredDescription
successfunctionNoCallback function that is called when the query is successful.
failfunctionNoCallback function that is called when the interface call fails.
completefunctionNoCallback function that is called when the interface call is complete, whether it succeeds or fails.

Return Value

PropertyTypeDescription
isExistBooleanWhether the mini-program has been added to the desktop. true if added, false if not added.
latestShowTimeNumberTimestamp of the most recent prompt to add to the desktop, in milliseconds.

Sample Code

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