在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:BarcodeScanner开源软件地址:https://gitee.com/mbyte/BarcodeScanner开源软件介绍:BarcodeScanner###自定义更新说明
Follows the Cordova Plugin spec, so that it works with Plugman. Supported Platforms
Note: the Android source for this project includes an Android Library Project.plugman currently doesn't support Library Project refs, so its beenprebuilt as a jar library. Any updates to the Library Project should becommitted with an updated jar. Using the pluginThe plugin creates the object The following barcode types are currently supported: Android
iOS
Windows8
Windows Phone 8
A full example could be: cordova.plugins.barcodeScanner.scan( function (result) { alert("We got a barcode\n" + "Result: " + result.text + "\n" + "Format: " + result.format + "\n" + "Cancelled: " + result.cancelled); }, function (error) { alert("Scanning failed: " + error); } ); Encoding a BarcodeThe plugin creates the object Supported encoding types:
A full example could be: cordova.plugins.barcodeScanner.encode(cordova.plugins.barcodeScanner.Encode.TEXT_TYPE, "http://www.nytimes.com", function(success) { alert("encode success: " + success); }, function(fail) { alert("encoding failed: " + fail); } ); Windows8 quirksWindows 8 implenemtation currently doesn't support encode functionality. Windows Phone 8 quirksWindows Phone 8 implenemtation currently doesn't support encode functionality. Thanks on GithubSo many -- check out the original iOS and Android repos. LicenceThe MIT License Copyright (c) 2010 Matt Kane Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE. |
请发表评论