capacitor-screenshot
TypeScript icon, indicating that this package has built-in type declarations

6.0.1 • Public • Published


Screenshot

capacitor-screenshot

Capacitor community plugin for take screenshot.


Maintainers

Maintainer GitHub Social
Luan Freitas (ludufre) ludufre @ludufre

Installation

npm install capacitor-screenshot
ionic cap sync
yarn install capacitor-screenshot
ionic cap sync
pnpm add capacitor-screenshot
ionic cap sync

Configuration

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}`
});

/capacitor-screenshot/

    Package Sidebar

    Install

    npm i capacitor-screenshot

    Weekly Downloads

    894

    Version

    6.0.1

    License

    MIT

    Unpacked Size

    20 kB

    Total Files

    41

    Last publish

    Collaborators

    • ludufre