@types/com.darktalker.cordova.screenshot
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

Installation

npm install --save @types/com.darktalker.cordova.screenshot

Summary

This package contains type definitions for com.darktalker.cordova.screenshot (https://github.com/gitawego/cordova-screenshot).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/com.darktalker.cordova.screenshot.

index.d.ts

declare namespace com.darktalker.cordova.screenshot {
    interface Plugin {
        /**
         * Takes a screenshot, saves it to device as JPG and provides a path to the file.
         *
         * @param saveCallback callback function, holds results
         * @param format format of to be taken image, possible values are 'jpg' and 'png' ('jpg' is default)
         * @param quality custom quality of to be taken image in percentage (100 is default)
         * @param filename custom filename of to be taken image, ('screenshot_<milliSecondsSince1970>.<format>' is default)
         */
        save(
            saveCallback: (errorMessage: string, successObject: { success: boolean; filePath: string }) => void,
            format?: string,
            quality?: number,
            filename?: string,
        ): void;

        /**
         * Takes a screenshot and provides it trough data URI as JPG. No data are saved in the device.
         *
         * @param uriCallback callback function, holds results
         * @param quality custom quality of to be taken image in percentage (100 is default)
         */
        URI(uriCallback: (errorMessage: string, successObject: { URI: string }) => void, quality?: number): void;
    }
}

interface Navigator {
    screenshot: com.darktalker.cordova.screenshot.Plugin;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/com.darktalker.cordova.screenshot

Weekly Downloads

34

Version

0.1.5

License

MIT

Unpacked Size

5.19 kB

Total Files

5

Last publish

Collaborators

  • types