Sdílet prostřednictvím


CameraCaptureSession.StateCallback.OnConfigureFailed Method

Definition

This method is called if the session cannot be configured as requested.

[Android.Runtime.Register("onConfigureFailed", "(Landroid/hardware/camera2/CameraCaptureSession;)V", "GetOnConfigureFailed_Landroid_hardware_camera2_CameraCaptureSession_Handler")]
public abstract void OnConfigureFailed (Android.Hardware.Camera2.CameraCaptureSession session);
[<Android.Runtime.Register("onConfigureFailed", "(Landroid/hardware/camera2/CameraCaptureSession;)V", "GetOnConfigureFailed_Landroid_hardware_camera2_CameraCaptureSession_Handler")>]
abstract member OnConfigureFailed : Android.Hardware.Camera2.CameraCaptureSession -> unit

Parameters

session
CameraCaptureSession

the session instance that failed during configuration

Attributes

Remarks

This method is called if the session cannot be configured as requested.

This can happen if the set of requested outputs contains unsupported sizes, or too many outputs are requested at once.

The session is considered to be closed, and all methods called on it after this callback is invoked will throw an IllegalStateException. Any capture requests submitted to the session prior to this callback will be discarded and will not produce any callbacks on their listeners.

Java documentation for android.hardware.camera2.CameraCaptureSession.StateCallback.onConfigureFailed(android.hardware.camera2.CameraCaptureSession).

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