mirror of
https://github.com/wahyd4/BarcodeScanner.git
synced 2026-08-10 21:45:55 +10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f26cde76f5 | ||
|
|
5d452348da | ||
|
|
4d8646e26d | ||
|
|
cc0f7d82a1 | ||
|
|
f94c6129ae | ||
|
|
4579d40dc0 | ||
|
|
40849d52d6 | ||
|
|
2f7d652587 | ||
|
|
c1d0b47929 | ||
|
|
381ee1c6ac | ||
|
|
560cecc5b8 | ||
|
|
a0373c766f | ||
|
|
f9e3d0cffa | ||
|
|
604ebdf144 | ||
|
|
7c47973f78 | ||
|
|
1661cc4387 | ||
|
|
15b5cb9442 | ||
|
|
1d8ee5ca8d | ||
|
|
3c73e21796 | ||
|
|
c7158af58e | ||
|
|
3f166162a0 |
@@ -48,7 +48,7 @@ The following barcode types are currently supported:
|
||||
|
||||
A full example could be:
|
||||
|
||||
var scanner = cordova.require("cordova/plugin/BarcodeScanner");
|
||||
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
|
||||
|
||||
scanner.scan(
|
||||
function (result) {
|
||||
@@ -74,7 +74,7 @@ Supported encoding types:
|
||||
|
||||
A full example could be:
|
||||
|
||||
var scanner = cordova.require("cordova/plugin/BarcodeScanner");
|
||||
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
|
||||
|
||||
scanner.encode(BarcodeScanner.Encode.TEXT_TYPE, "http://www.nytimes.com", function(success) {
|
||||
alert("encode success: " + success);
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
id="com.phonegap.plugins.barcodescanner"
|
||||
version="0.5.1">
|
||||
version="0.3.1">
|
||||
|
||||
<name>BarcodeScanner</name>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
|
||||
cordova.define("cordova/plugin/BarcodeScanner",
|
||||
PhoneGap.define("cordova/plugin/BarcodeScanner",
|
||||
|
||||
function (require, exports, module) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user