You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Permission errors may be thrown when initializing the camera controller, and you are expected to handle them properly.
86
+
87
+
Here is a list of all permission errors that can be thrown:
88
+
89
+
- CameraAccessDenied
90
+
Thrown when user denied the permission.
91
+
92
+
- CameraAccessDeniedWithoutPrompt
93
+
Thrown when user previously denied the permission.
94
+
iOS only for now. iOS does not allow prompting alert dialog a second time. Users will have to go to Settings > Privacy in order to enable camera access.
95
+
96
+
- CameraAccessRestricted
97
+
Thrown when camera access is restricted and users cannot grant permission (parental control). iOS only for now.
98
+
99
+
- cameraPermission
100
+
A legacy error code for all kinds of camera permission errors. Currently used by Android and Web.
101
+
83
102
### Example
84
103
85
104
Here is a small example flutter app displaying a full screen camera preview.
@@ -119,6 +138,15 @@ class _CameraAppState extends State<CameraApp> {
0 commit comments