capacitor-screenshot
Capacitor community plugin for take screenshot.
Maintainer | GitHub | Social |
---|---|---|
Luan Freitas (ludufre) | ludufre | @ludufre |
npm install capacitor-screenshot
ionic cap sync
yarn install capacitor-screenshot
ionic cap sync
pnpm add capacitor-screenshot
ionic cap sync
Not needed.
import { Screenshot } from 'capacitor-screenshot';
...
Screenshot.take().then((ret: { base64: string }) => {
console.log(ret.base64); // or `data:image/png;base64,${ret.base64}`
});