Language

CameraAccessException Constructors

Definition

Overloads

CameraAccessException(CameraAccessErrorType)

[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)

[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
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)

[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
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

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

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)

[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
cause
Throwable
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