好久没写了,这片文章篇幅不长,概述一下在xamarin android中用 ZXing.Net.Mobile库扫描二维码读取url的示例。扫码支付,扫码登录,App上各种各样的扫码,好像没个扫码的就有点low一样似的,主要就是利用这个原理扫描二维码读取其中的url,url由不同的参数组成,然后根据url发送请求做各种事情
zxing更多详细的内容见官网:http://zxingnet.codeplex.com/
ZXing.Net.Mobile github源码:https://github.com/Redth/ZXing.Net.Mobile
官方介绍:
ZXing.Net.Mobile is a C#/.NET library based on the open source Barcode Library: ZXing (Zebra Crossing), using the ZXing.Net Port. It works with Xamarin.iOS, Xamarin.Android, and Windows Phone. The goal of ZXing.Net.Mobile is to make scanning barcodes as effortless and painless as possible in your own applications. The new iOS7 AVCaptureSession barcode scanning is now also supported!
谷歌翻译:
ZXing.Net.Mobile是基于开源条码库的C#/ .N