7.0.1 • Published 1 year ago

@capawesome/capacitor-screenshot v7.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@capawesome/capacitor-screenshot

Capacitor plugin for taking screenshots.

Installation

Install the plugin:

npm install @capawesome/capacitor-screenshot
npx cap sync

If you are using the Web platform, you must also install the html2canvas package:

npm i html2canvas

Usage

import { Screenshot } from '@capawesome/capacitor-screenshot';

const take = async () => {
  const { uri } = await Screenshot.take();
  console.log('Screenshot saved at:', uri);
};

API

take()

take() => Promise<TakeResult>

Take a screenshot.

Returns: Promise<TakeResult>

Since: 6.0.0


Interfaces

TakeResult

PropTypeDescriptionSince
uristringThe file path (Android and iOS) or data URI (Web) of the screenshot.6.0.0

Changelog

See CHANGELOG.md.

License

See LICENSE.

7.0.1

1 year ago

7.0.0

1 year ago

6.0.0

1 year ago