HomeDocs
Skip to main content

dlt.setClipboard

Introduction

Set clipboard data.

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

Parameters

Object object

PropertyTypeDefaultRequiredDescription
textstringYesClipboard data
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)

Sample Code

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