Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ludufre/capacitor-screenshot

This plugin take screenshot of the app
https://github.com/ludufre/capacitor-screenshot

Last synced: 3 months ago
JSON representation

This plugin take screenshot of the app

Awesome Lists containing this project

README

        



Screenshot


capacitor-screenshot



Capacitor community plugin for take screenshot.








## Maintainers

| Maintainer | GitHub | Social |
| ---------------------- | ------------------------------------- | --------------------------------------- |
| Luan Freitas (ludufre) | [ludufre](https://github.com/ludufre) | [@ludufre](https://twitter.com/ludufre) |

## Installation

```terminal
npm install capacitor-screenshot
ionic cap sync
```

```terminal
yarn install capacitor-screenshot
ionic cap sync
```

```terminal
pnpm add capacitor-screenshot
ionic cap sync
```

## Configuration

Not needed.

## Usage

```typescript
import { Screenshot } from 'capacitor-screenshot';

...

Screenshot.take().then((ret: { base64: string }) => {
console.log(ret.base64); // or `data:image/png;base64,${ret.base64}`
});
```