CameraAccessException Constructors
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.
Overloads
| Name | Description |
|---|---|
| CameraAccessException(CameraAccessErrorType) |
Initializes a new instance of CameraAccessException with the specified camera access error. |
| CameraAccessException(CameraAccessErrorType, Throwable) |
Initializes a new instance of CameraAccessException with the specified camera access error and cause. |
| CameraAccessException(CameraAccessErrorType, String) |
Initializes a new instance of CameraAccessException with the specified camera access error and message. |
| CameraAccessException(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| CameraAccessException(CameraAccessErrorType, String, Throwable) |
Initializes a new instance of CameraAccessException with the specified camera access error, message, and cause. |
CameraAccessException(CameraAccessErrorType)
Initializes a new instance of CameraAccessException with the specified camera access error.
[Android.Runtime.Register(".ctor", "(I)V", "")]
public CameraAccessException(Android.Hardware.Camera2.CameraAccessErrorType problem);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Android.Hardware.Camera2.CameraAccessException : Android.Hardware.Camera2.CameraAccessErrorType -> Android.Hardware.Camera2.CameraAccessException
Parameters
- problem
- CameraAccessErrorType
Value is one of the following: CAMERA_IN_USE; MAX_CAMERAS_IN_USE; CAMERA_DISABLED; CAMERA_DISCONNECTED; CAMERA_ERROR
- Attributes
Remarks
Android reference for android.hardware.camera2.CameraAccessException.CameraAccessException.
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.
Applies to
CameraAccessException(CameraAccessErrorType, Throwable)
Initializes a new instance of CameraAccessException with the specified camera access error and cause.
[Android.Runtime.Register(".ctor", "(ILjava/lang/Throwable;)V", "")]
public CameraAccessException(Android.Hardware.Camera2.CameraAccessErrorType problem, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/Throwable;)V", "")>]
new Android.Hardware.Camera2.CameraAccessException : Android.Hardware.Camera2.CameraAccessErrorType * Java.Lang.Throwable -> Android.Hardware.Camera2.CameraAccessException
Parameters
- problem
- CameraAccessErrorType
Value is one of the following: CAMERA_IN_USE; MAX_CAMERAS_IN_USE; CAMERA_DISABLED; CAMERA_DISCONNECTED; CAMERA_ERROR
- cause
- Throwable
The exception that caused the camera access error.
- Attributes
Remarks
Android reference for android.hardware.camera2.CameraAccessException.CameraAccessException.
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.
Applies to
CameraAccessException(CameraAccessErrorType, String)
Initializes a new instance of CameraAccessException with the specified camera access error and message.
[Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "")]
public CameraAccessException(Android.Hardware.Camera2.CameraAccessErrorType problem, string? message);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "")>]
new Android.Hardware.Camera2.CameraAccessException : Android.Hardware.Camera2.CameraAccessErrorType * string -> Android.Hardware.Camera2.CameraAccessException
Parameters
- problem
- CameraAccessErrorType
Value is one of the following: CAMERA_IN_USE; MAX_CAMERAS_IN_USE; CAMERA_DISABLED; CAMERA_DISCONNECTED; CAMERA_ERROR
- message
- String
The detail message for the camera access error.
- Attributes
Remarks
Android reference for android.hardware.camera2.CameraAccessException.CameraAccessException.
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.
Applies to
CameraAccessException(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected CameraAccessException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Hardware.Camera2.CameraAccessException : nativeint * Android.Runtime.JniHandleOwnership -> Android.Hardware.Camera2.CameraAccessException
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
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.
Applies to
CameraAccessException(CameraAccessErrorType, String, Throwable)
Initializes a new instance of CameraAccessException with the specified camera access error, message, and cause.
[Android.Runtime.Register(".ctor", "(ILjava/lang/String;Ljava/lang/Throwable;)V", "")]
public CameraAccessException(Android.Hardware.Camera2.CameraAccessErrorType problem, string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Android.Hardware.Camera2.CameraAccessException : Android.Hardware.Camera2.CameraAccessErrorType * string * Java.Lang.Throwable -> Android.Hardware.Camera2.CameraAccessException
Parameters
- problem
- CameraAccessErrorType
Value is one of the following: CAMERA_IN_USE; MAX_CAMERAS_IN_USE; CAMERA_DISABLED; CAMERA_DISCONNECTED; CAMERA_ERROR
- message
- String
The detail message for the camera access error.
- cause
- Throwable
The exception that caused the camera access error.
- Attributes
Remarks
Android reference for android.hardware.camera2.CameraAccessException.CameraAccessException.
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.