NativeCameraController class
Quản lý trạng thái và logic cho NativeCameraView.
Constructors
- NativeCameraController({required dynamic onControllerCreated(CameraController controller)})
- Constructor: Nhận callback và bắt đầu xin quyền ngay lập tức.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isLoading
→ ValueNotifier<
bool> -
final
-
isPermissionGranted
→ ValueNotifier<
bool> -
final
- onControllerCreated → dynamic Function(CameraController controller)
-
Callback để truyền
CameraControllerđã được khởi tạo lên widget cha.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
snackbarMessage
→ ValueNotifier<
String?> -
Dùng cho các sự kiện chỉ xảy ra một lần, ví dụ như hiển thị SnackBar.
final
Methods
-
clearSnackbarMessage(
) → void - Xóa tin nhắn snackbar sau khi đã hiển thị.
-
dispose(
) → void - Dọn dẹp tài nguyên để tránh rò rỉ bộ nhớ.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onPlatformViewCreated(
int id) → void - Được gọi từ view khi native PlatformView đã sẵn sàng.
-
requestCameraPermission(
) → Future< void> - SỬA ĐỔI HÀM NÀY ĐỂ XỬ LÝ QUYỀN ĐÚNG CÁCH Yêu cầu quyền truy cập camera từ người dùng.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited