HomeDocs
Skip to main content

dlt.getClipboard

Introduction

Get clipboard data.

Note: This interface may involve privacy issues, so use it carefully.

Parameters

Object object

PropertyTypeDefaultRequiredDescription
successfunctionNoCallback function for a successful call
failfunctionNoCallback function for a failed call
completefunctionNoCallback function for the call's completion (executed for both successful and failed calls)

success Callback Function

Parameters

Object res

PropertyTypeDescription
textstringClipboard data

Sample Code

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