@types/phonegap-plugin-barcodescanner
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Installation

npm install --save @types/phonegap-plugin-barcodescanner

Summary

This package contains type definitions for phonegap-plugin-barcodescanner (https://github.com/phonegap/phonegap-plugin-barcodescanner).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/phonegap-plugin-barcodescanner.

index.d.ts

interface CordovaPlugins {
    barcodeScanner: phonegapBarcode.BarcodeScanner;
}

declare namespace phonegapBarcode {
    interface BarcodeScanResult {
        text: string;
        format: string;
        cancelled: boolean;
    }

    interface BarcodeScanOptions {
        preferFrontCamera?: boolean | undefined;
        showFlipCameraButton?: boolean | undefined;
        showTorchButton?: boolean | undefined;
        torchOn?: boolean | undefined;
        saveHistory?: boolean | undefined;
        resultDisplayDuration?: number | undefined;
        disableAnimations: boolean;
        prompt?: string | undefined;
        formats?: string | undefined;
        orientation?: "landscape" | "portrait" | undefined;
        disableSuccessBeep?: boolean | undefined;
    }

    interface EncodingType {
        TEXT_TYPE: any;
        EMAIL_TYPE: any;
        PHONE_TYPE: any;
        SMS_TYPE: any;
    }

    interface BarcodeScanner {
        scan: (
            success: (result: BarcodeScanResult) => any,
            failure?: (err: any) => any,
            opts?: BarcodeScanOptions,
        ) => void;
        encode: (
            encodingType: EncodingType,
            data: string,
            success: (result: any) => any,
            failure?: (err: any) => any,
        ) => void;
        Encode: EncodingType;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Nathan Ainslie, and Jeff Wu.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.4307ts3.6
0.0.4307ts3.7
0.0.4307ts3.8
0.0.4307ts3.9
0.0.4307ts4.0
0.0.4307ts4.1
0.0.4307ts4.2
0.0.4307ts4.3
0.0.4307ts4.4
0.0.7303ts5.7
0.0.7303ts5.6
0.0.7303latest
0.0.7303ts4.5
0.0.7303ts4.6
0.0.7303ts4.7
0.0.7303ts4.8
0.0.7303ts4.9
0.0.7303ts5.0
0.0.7303ts5.1
0.0.7303ts5.2
0.0.7303ts5.3
0.0.7303ts5.4
0.0.7303ts5.5
0.0.7303ts5.8
0.0.326ts2.0
0.0.326ts2.1
0.0.326ts2.2
0.0.326ts2.3
0.0.326ts2.4
0.0.326ts2.5
0.0.326ts2.6
0.0.326ts2.7
0.0.326ts2.8
0.0.326ts2.9
0.0.326ts3.0
0.0.326ts3.1
0.0.326ts3.2
0.0.326ts3.3
0.0.326ts3.4
0.0.326ts3.5

Version History

VersionDownloads (Last 7 Days)Published
0.0.7303
0.0.61
0.0.50
0.0.4307
0.0.326
0.0.20
0.0.10

Package Sidebar

Install

npm i @types/phonegap-plugin-barcodescanner

Weekly Downloads

637

Version

0.0.7

License

MIT

Unpacked Size

5.53 kB

Total Files

5

Last publish

Collaborators

  • types