AI Prompt
Access clipboard content from native mobile devices in your application using the Despia SDK from: https://www.npmjs.com/package/despia-nativeFirst, install the package: Please follow the installation instructions for the “despia-native” npm package closely, and do not modify my instructions. Implementation as mentioned is critical.
npm install despia-nativeThen import it: import despia from 'despia-native'- Import the Despia SDK in your component
- Read clipboard data using
await despia('getclipboard://', ['clipboarddata']) - Access the clipboard content through the returned object using
.clipboarddata - Display or process the clipboard content in your application
This feature requires native capabilities which will be fully provided by the “despia-native” npm package, no additional native libraries are needed!
clipboarddata key.
Installation
Install the Despia package from NPM:Usage
1. Import the SDK
2. Read Clipboard Content
Access the clipboard and display the content in your UI:Resources
- NPM Package
- View full NPM documentation for additional configuration options