mirror of
https://github.com/wahyd4/BarcodeScanner.git
synced 2026-08-11 14:06:00 +10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff32ceb0e0 |
@@ -48,7 +48,7 @@ The following barcode types are currently supported:
|
|||||||
|
|
||||||
A full example could be:
|
A full example could be:
|
||||||
|
|
||||||
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
|
var scanner = cordova.require("cordova/plugin/BarcodeScanner");
|
||||||
|
|
||||||
scanner.scan(
|
scanner.scan(
|
||||||
function (result) {
|
function (result) {
|
||||||
@@ -74,7 +74,7 @@ Supported encoding types:
|
|||||||
|
|
||||||
A full example could be:
|
A full example could be:
|
||||||
|
|
||||||
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
|
var scanner = cordova.require("cordova/plugin/BarcodeScanner");
|
||||||
|
|
||||||
scanner.encode(BarcodeScanner.Encode.TEXT_TYPE, "http://www.nytimes.com", function(success) {
|
scanner.encode(BarcodeScanner.Encode.TEXT_TYPE, "http://www.nytimes.com", function(success) {
|
||||||
alert("encode success: " + success);
|
alert("encode success: " + success);
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
id="com.phonegap.plugins.barcodescanner"
|
id="com.phonegap.plugins.barcodescanner"
|
||||||
version="0.3.1">
|
version="0.5.1">
|
||||||
|
|
||||||
<name>BarcodeScanner</name>
|
<name>BarcodeScanner</name>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
PhoneGap.define("cordova/plugin/BarcodeScanner",
|
cordova.define("cordova/plugin/BarcodeScanner",
|
||||||
|
|
||||||
function (require, exports, module) {
|
function (require, exports, module) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user