FlMlKitScanningController class

Inheritance
  • Object
  • CameraController
  • FlMlKitScanningController

Constructors

FlMlKitScanningController()
factory

Properties

barcodeFormats List<BarcodeFormat>
The currently BarcodeFormat
no setter
cameraFlash FlashState?
no setterinherited
cameraOptions ValueNotifier<FlCameraOptions?>
相机配置信息 Camera configuration information FlCameraOptions? cameraOptions;
finalinherited
cameraResolution CameraResolution
getter/setter pairinherited
cameras List<CameraInfo>?
no setterinherited
cameraZoom CameraZoomState?
no setterinherited
canScanning bool
no setter
data AnalysisImageModel?
解析出来的数据 barCode data
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onDataChanged EventBarcodeListen?
解析出来的数据回调 barCode data onChanged
getter/setter pair
onDataListen FlEventListenData
消息回调监听
no setteroverride
onFlashChanged FlCameraFlashStateChanged?
闪光灯变化 Flash change
getter/setter pairinherited
onZoomChanged FlCameraCameraZoomStateChanged?
缩放变化 zoom ratio
getter/setter pairinherited
previousCamera CameraInfo?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

availableCameras() Future<List<CameraInfo>?>
获取可用摄像机 通常在第一次加载 Camera 后自动获取设备的可用相机,并且赋值给了cameras,所以后续可以不用再调用这个方法,可直接使用cameras
inherited
dispose() Future<bool>
dispose all
override
initialize() Future<bool>
初始化所有相机 camera 和 event initialize all Including camera and event
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseScanning() Future<bool>
暂停扫描 Pause scanning
resetCamera() Future<bool>
重新预览相机 Reset the camera
inherited
scanningImageByte(Uint8List uint8list, {int rotationDegrees = 0}) Future<AnalysisImageModel?>
识别图片字节 Identify picture bytes The return message uses FlEvent rotationDegrees Only Android is supported
setBarcodeFormat(List<BarcodeFormat> barcodeFormats) Future<bool>
设置设别码类型 Set type
setFlashMode(FlashState status) Future<bool>
打开/关闭 闪光灯 Turn flash on / off
inherited
setParams({double? frequency, bool? canScanning}) Future<bool>
设置 params Set params
setZoomRatio(double ratio) Future<bool>
相机缩放 Camera zoom
inherited
startPreview(CameraInfo camera, {CameraResolution? resolution}) Future<FlCameraOptions?>
开始预览 start Preview camera 需要预览的相机 Camera to preview resolution 预览相机支持的分辨率 Preview the resolution supported by the camera
inherited
startScanning() Future<bool>
开始扫描 Start scanning
stopPreview() Future<bool>
暂停预览 stop Preview
inherited
switchCamera(CameraInfo camera) Future<bool>
切换摄像头 Switch Camera
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited