RBarcodeCameraController class
二维码扫描相机的控制器
- Inheritance
-
- Object
- ChangeNotifier
- ValueNotifier<
RBarcodeCameraValue> - RBarcodeCameraController
Constructors
-
RBarcodeCameraController(RBarcodeCameraDescription description, RBarcodeCameraResolutionPreset resolutionPreset, {List<
RBarcodeFormat> ? formats, bool? isDebug})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isScanning ↔ bool?
-
getter/setter pair
- result ↔ RBarcodeResult?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ RBarcodeCameraValue
-
The current value stored in this notifier.
getter/setter pairinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clearResult(
) → void -
dispose(
) → Future< void> -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
initialize(
) → Future< void> - 初始化相机控制器
-
isTorchOn(
) → Future< bool?> - 是否打开闪光灯
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
requestFocus(
double x, double y, double width, double height) → Future< void> -
请求聚焦
x
0~1y
0~1 -
setBarcodeFormats(
List< RBarcodeFormat> formats) → Future<void> - 设置想要的编码格式的二维码
-
setTorchOn(
bool isTorchOn) → Future< bool?> -
设置闪光灯
isTorchOn
打开/关闭闪光灯 -
startScan(
) → Future< void> - 开启扫码
-
stopScan(
) → Future< void> - 停止扫码
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited