Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ludufre/capacitor-screenshot
- Owner: ludufre
- License: mit
- Created: 2021-11-07T03:43:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T15:11:29.000Z (7 months ago)
- Last Synced: 2024-07-11T19:31:28.932Z (4 months ago)
- Language: Java
- Size: 301 KB
- Stars: 15
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-capacitor - Screenshot - Take a screenshot of the current view. (Other plugins)
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}`
});
```