FlCameraMethodCall class

Constructors

FlCameraMethodCall()
factory

Properties

cameraEvent FlCameraEvent
no setter
cameraOptions FlCameraOptions?
no setter
cameras List<CameraInfo>?
no setter
channel MethodChannel
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

availableCameras() Future<List<CameraInfo>?>
第二步 获取可用摄像机 Step 2 get available Cameras
dispose() Future<bool>
注销相机 dispose camera
initCamera() Future<bool>
第三步 初始化相机 Step 3 initialize the camera
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFlashMode(bool status) Future<bool>
打开/关闭 闪光灯 Turn flash on / off
setMethodChannel(MethodChannel channel) → void
第一步 先设置 channel The first step is to set the channel
setZoomRatio(double ratio) Future<bool>
相机缩放 Camera zoom
startPreview(String camerId, {CameraResolution resolution = CameraResolution.high}) Future<FlCameraOptions?>
第四步 开始预览 Step 4 start Preview camerId 需要预览的相机 Camera ID to preview resolution 预览相机支持的分辨率 Preview the resolution supported by the camera
toString() String
A string representation of this object.
inherited

Operators

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