Skip to main content
Read text content from the device clipboard.

Parameters

PropertyTypeRequiredDescription
successFunctionNoCallback with clipboard content
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Success Callback

PropertyTypeDescription
textStringClipboard text content

Code Example

my.getClipboard({
  success: (res) => {
    console.log('Clipboard:', res.text);
  }
});