0.1.5 • Published 7 months ago

@types/com.darktalker.cordova.screenshot v0.1.5

Weekly downloads
74
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for com.darktalker.cordova.screenshot v0.1.5
// Project: https://github.com/gitawego/cordova-screenshot
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 23 Dec 2021 23:34:25 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by DefinitelyTyped.

0.1.4

7 months ago

0.1.3

9 months ago

0.1.5

7 months ago

0.1.2

2 years ago

0.1.1

8 years ago