Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-scanbot-image-picker

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-scanbot-image-picker

Simple Image Picker with multiple selection capability

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-58%
Maintainers
1
Weekly downloads
 
Created
Source

Scanbot Image Picker for Cordova

Simple plugin that implements a very straight-forward native iOS & Android Image Picker, which features:

  • Multiple Images Selection

  • Customizable Parameters

  • Typescript definitions

  • Promisified API interface

Installation

cordova plugin add cordova-plugin-scanbot-image-picker

Usage

Import Module

import ScanbotImagePicker from 'cordova-plugin-scanbot-image-picker'

Pick Single Image

Opens the native single image picker, and returns the selected image file URI.

Example

const result = await ScanbotImagePicker.pickImage();

if (result.status == "OK") {
    let image = result.imageFileUri;
}

Optional Parameters

export interface ScanbotImagePickerSingleConfiguration {
    /**
    * The quality of the images returned by the Image Picker, from 0 to 100 (default = 100)
    */
    imageQuality?:  number;
}

Result

export interface ScanbotImagePickerSingleResult {
    status: "OK"  |  "CANCELED";
    imageFileUri?:  string;
}

Pick Multiple Images

Opens the multiple image picker, and returns the selected image files URIs.

Example

const result = await ScanbotImagePicker.pickImages();

if (result.status  ==  "OK") {
    let images = result.imageFilesUris;
}

Optional Parameters

export interface ScanbotImagePickerMultipleConfiguration {
    /**
    * Maximum selectable images. Default is 0 (unlimited).
    */
    maxImages?:  number;
    /**
    * The quality of the images returned by the Image Picker, from 0 to 100 (default = 100).
    */
    imageQuality?:  number;
}

Result

export interface ScanbotImagePickerMultipleResult {
    status: "OK"  |  "CANCELED";
    imageFilesUris: string[];
}

Contributing

Contributions in the form of issues, pull requests and suggestions are very welcome.

Disclaimer

This package is still in beta and should be used with that in mind.

License

MIT

Keywords

FAQs

Package last updated on 29 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc