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

camera-cordova-plugin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

camera-cordova-plugin

Custom camera for taking photos of documents

  • 1.0.16
  • Source
  • npm
  • Socket score

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

Plugin takes picture from native camera.

You shoud declare CustomCamera variable and call: CustomCamera.takePicture(success, failure, [title, subtitle, cancel, message, type])

type could be: PASSPORT, A4, LICENCE, NONE Returns absolute file path for stored image in successCallback. Image is stored in internal storage so no extra permissions needed.

In case of error, errorCallback is triggered with parameter describind whats happened. Errors could be: NO_PERMISSION - user did not grant camera permission CANCELLED - user closed the flow FILE_NOT_FOUND - problem with creating file for storing the result. Could be out of memory in internal storage. ERROR_ACCESSING_FILE - problem while writing file. Could be out of memory in internal storage. CAMERA_ERROR - any problem with camera initialisation. For instance, there is no camera on device.

In order to run test project, you need to add plugin and build the project. ⇒ cordova plugin add --link ../camera-cordova-plugin ⇒ ionic cordova emulate android

Plugin has 2 dependencies, please keep attention on version of support library. You can update it if needed: 'com.android.support:appcompat-v7:27.1.1' 'com.otaliastudios:cameraview:1.5.1'

camera-cordova-plugin

Keywords

FAQs

Package last updated on 06 Jun 2019

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