copyToClipboard

Copies specified text to the system clipboard.

Request Parameters

Parameter Name
Type
Required
Description

text

String

Yes

Supports copying text of unlimited length.

Response Parameters

None

Call Example

example.js
let payload = {
  text: "Hello World"
};

const response = await relayx.copyToClipboard(payload);
if (response.code === 200) {
  console.log("Text copied to clipboard");
}