CameraError Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates values returned by several methods of CameraError and taken as a parameter of the F:Android.Hardware.Camera2.CameraDevice+StateCallback.OnError member.
public enum CameraError
type CameraError =
- Inheritance
-
CameraError
Fields
| Name | Value | Description |
|---|---|---|
| CameraInUse | 1 | An error code that can be reported by onError(CameraDevice, int) indicating that the camera device is in use already. This error can be produced when opening the camera fails due to the camera being used by a higher-priority camera API client. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| MaxCamerasInUse | 2 | An error code that can be reported by onError(CameraDevice, int) indicating that the camera device could not be opened because there are too many other open camera devices. The system-wide limit for number of open cameras has been reached, and more camera devices cannot be opened until previous instances are closed. This error can be produced when opening the camera fails. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| CameraDisabled | 3 | An error code that can be reported by onError(CameraDevice, int) indicating that the camera device could not be opened due to a device policy. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| CameraDevice | 4 | An error code that can be reported by onError(CameraDevice, int) indicating that the camera device has encountered a fatal error. The camera device needs to be re-opened to be used again. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| CameraService | 5 | An error code that can be reported by onError(CameraDevice, int) indicating that the camera service has encountered a fatal error. The Android device may need to be shut down and restarted to restore camera function, or there may be a persistent hardware problem. An attempt at recovery may be possible by closing the CameraDevice and the CameraManager, and trying to acquire all resources again from scratch. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.