CameraExtensionSession.StateCallback.OnConfigureFailed Method
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.
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.
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.