Documentation Index
Fetch the complete documentation index at: https://setup.despia.com/llms.txt
Use this file to discover all available pages before exploring further.
This SDK is currently not optimized yet for React apps.
Lovable Prompt
Add screenshot capture functionality to my app 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'Create a screenshot capture system that uses Despia URLs like: despia("takescreenshot://") which captures the entire visible app page and automatically saves it to the device’s camera roll.This feature requires native capabilities which will be fully provided by the “despia-native” npm package, no additional native libraries are needed!
Installation
Install the Despia package from NPM:Usage
1. Import the SDK
2. Execute Screenshot Capture
Call thedespia() function with a Screenshot Command:
Screenshot Features
The screenshot capture automatically includes:- Full Page Capture: Captures entire visible app content
- Auto-Save: Automatically saves to device camera roll
- High Quality: Maintains original resolution and clarity
- Instant Access: Image immediately available in photo gallery
Platform Support
Compatible with all mobile platforms:- iOS Photo Library (iPhone, iPad)
- Android Gallery (All Android devices)
- Camera Roll Integration (Native photo apps)
- Photo Stream Support (iCloud Photos, Google Photos)
- Third-party Gallery Apps
- Share Sheet Access (Direct sharing after capture)
- Photo Editing Apps (Edit captured screenshots)
- Cloud Backup Services (Auto-sync to cloud storage)
Resources
- NPM Package
- View full NPM documentation for additional configuration options