Aracılığıyla paylaş


CameraExtensionSession.StateCallback.OnConfigureFailed Method

Definition

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

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

Parameters

session
CameraExtensionSession

the session instance that failed to configure

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, too many outputs are requested at once or when trying to initialize multiple concurrent extension sessions from two (or more) separate camera devices or the camera device encounters an unrecoverable error during configuration.

The session is considered to be closed, and all methods called on it after this callback is invoked will throw an IllegalStateException.

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

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