Skip to content

Read Clipboard

Read text content from the iOS device's system clipboard.

Interface Description

Interface Type

execShortcut

Parameters

ParameterTypeRequiredDescription
deviceIdstringDevice ID
directivestring'readClipboard'

Return Value

javascript
"Clipboard text content"  // Returns clipboard text content

Basic Usage

javascript
// Read clipboard content
const clipboardText = await apiInvoke('execShortcut', {
    deviceId: 'P72578581E07',
    directive: 'readClipboard'
});

console.log('Clipboard content:', clipboardText);

Cooperation: try.catch@foxmail.com