CameraController class

Constructors

CameraController({required MethodChannel channel})

Properties

errorMessage ValueNotifier<String?>
final
hashCode int
The hash code for this object.
no setterinherited
isFrontCamera bool
no setter
isLoading ValueNotifier<bool>
final
isPaused ValueNotifier<bool>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

captureImage() Future<String?>
Yêu cầu native code chụp ảnh. Trả về đường dẫn (String) của file ảnh đã lưu nếu thành công, ngược lại trả về null.
deleteAllCapturedPhotos() Future<bool>
Yêu cầu native code xóa tất cả các ảnh đã được chụp và lưu trong thư mục tạm/cache của plugin. Trả về true nếu thành công (hoặc không có gì để xóa), false nếu có lỗi hoặc không thành công.
dispose() → void
initialize() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseCamera() Future<void>
Yêu cầu native code tạm dừng camera.
resumeCamera() Future<void>
Yêu cầu native code tiếp tục (resume) camera.
switchCamera(bool useFrontCamera) Future<void>
Yêu cầu native code chuyển đổi giữa camera trước và sau. useFrontCamera: true nếu muốn sử dụng camera trước, false cho camera sau.
toString() String
A string representation of this object.
inherited

Operators

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