Narrating Prophetic Monks

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

    0.1.2 • 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

    // 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.

    Keywords

    none

    Install

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

    DownloadsWeekly Downloads

    46

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    5.94 kB

    Total Files

    4

    Last publish

    Collaborators

    • types