CameraCaptureSession.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/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.
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.