7.0.0 • Published 11 months ago
capacitor-screenshot v7.0.0
Maintainers
| Maintainer | GitHub | Social |
|---|---|---|
| Luan Freitas (ludufre) | ludufre | @ludufre |
Installation
npm install capacitor-screenshot
ionic cap syncyarn install capacitor-screenshot
ionic cap syncpnpm add capacitor-screenshot
ionic cap syncConfiguration
Not needed.
Usage
import { Screenshot } from 'capacitor-screenshot';
...
Screenshot.take().then((ret: { base64: string }) => {
console.log(ret.base64); // or `data:image/png;base64,${ret.base64}`
});