条码扫描 BarcodeReader

扫描条码/QR码。


页面源码










事件 Events

参数/Parameter
说明/Description
类型/Type
默认值/DefaultValue
可选值/ValueList
ScanResult
扫码结果回调方法/Scan result callback method
EventCallback<string>
-
Close
关闭扫码框回调方法/Close scan code callback method
EventCallback
-
ScanBtnTitle
扫码按钮文本/Scan button title
string
扫码
-
ResetBtnTitle
复位按钮文本/Reset button title
string
复位
-
CloseBtnTitle
关闭按钮文本/Close button title
string
关闭
-
SelectDeviceBtnTitle
选择设备按钮文本/Select device button title
string
选择设备
-
OnError
错误信息回调/Error callback method
Func<string, Task>
-
-
UseBuiltinDiv
使用内置DIV/Use builtin Div
Func<string, Task>
true
-
Pdf417Only
只解码 Pdf417 格式 / decode only Pdf417 format
bool
false
-
Decodeonce
单次|连续解码,默认单次 / Decode Once or Decode Continuously, default is Once
bool
true
-
DecodeAllFormats
解码所有编码形式,性能较差, 开启后可用 options.formats 指定编码形式.默认为 false | Decodde All Formats, performance is poor, you can set options.formats to customize specify the encoding formats. The default is false
bool
true
-
Options
选项/ZXingOptions
string
-
DeviceID
指定摄像头设备ID
string
-
-
SaveDeviceID
保存最后使用设备ID下次自动调用
bool
true
-
An error has occurred. This application may no longer respond until reloaded. Reload