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

cordova-plugin-camera-preview2

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-camera-preview2

Cordova camera preview for Android Camera2 API

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Cordova Camera 2 API Preview

Cordova camera preview using https://github.com/natario1/CameraView

Not an Android / Cordova Developer PR's appreciated.

Installation

To access the camera download the zip & copy it into a folder outside of your project, for example CameraPreview.

Then, open a terminal in your ionic project and do the following.

ionic cordova add ../CameraPreview

Once doing that, just add the below to your code.. In my example I use it with ionViewWillLoad()

ionViewWillLoad(){
 window.cordova.plugins.CameraPreview.startCameraPreview();
  }

And it's that simple....

If you're running on a physical device do

ionic cordova run android --device

Development

Want to contribute? Feel free to PR.

Todos

  • Embed within the Ionic Activity itself (or under), so it doesn't overlay
  • Add TakePicture ability.
  • iOS implementation?

License

MIT

Keywords

FAQs

Package last updated on 13 Feb 2020

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