Comments (5)
Hi and thank you :)
At the moment, no options are supported. Additional options are planned, but I do not expect to be able to release anything until next year. If you are able to extend this plugin I would love to pull your changes :)
from cszbar.
Hey thanks a lot.. I am currently very new to the Cordova world. If you can guide me a little on how to do that, i can give it a try.
from cszbar.
If you would like to contribute to this project, first you should understand how Cordova Plugins are written. Next, if you are interested in modifying this library for Android, you may read about Android Intents
In order to extend this library to do what you want, you will need to do 2 things.
- Pass the options from JavaScript to the native plugin code.
- In the native plugin code, pass the relevant options, based on the options set in JavaScript, to the ZBar library. Do that in:
- iOS: https://github.com/tjwoon/csZBar/blob/master/ios/CsZBar.m
- Android: https://github.com/tjwoon/csZBar/blob/master/android/ZBar.java
If you are in a hurry, the fastest way to do what you want is to just hardcode the options you need in the iOS and Android files above.
from cszbar.
Thanks a lot man.. I will try that and update this thread on how that can be achieved.
from cszbar.
Added support for "camera" and "flash" options in v1.2.0. Please see the latest README. Relevant parameters below:
{
camera: "front" || "back" // defaults to "back"
flash: "on" || "off" || "auto" // defaults to "auto". See Quirks
}
from cszbar.
Related Issues (20)
- iOS 11.0.1 NSRangeException HOT 1
- tjwoon/csZBar
- zBar not showing on iOS 11 even with #122 or #120 patch HOT 4
- Error while doing "cordova platform add android" HOT 4
- Scanner is not working anymore on iOS 11
- Crash Android on Bar code scan HOT 1
- iPhone X, iOS11.2.6 Crash HOT 3
- Problem whit ionic v4 HOT 1
- a scan is already in progress
- Ability to zoom HOT 1
- Android x86_64 HOT 1
- Is there any way to display scanner continuously? HOT 1
- would like to scan multiple qr codes simultaneously.how? HOT 2
- Can I add some custom button for back?
- Is it possible to allow html overlay in iOS and Android? HOT 2
- Message after success scanned
- Scanning only in middle of the screen
- change bg color from black to white HOT 9
- focus motog 5 plus
- Error When Build error: cannot find symbol import android.support.v4.app.ActivityCompat HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cszbar.