Sdílet prostřednictvím


CameraCaptureSession.StateCallback.OnConfigured(CameraCaptureSession) Method

Definition

This method is called when the camera device has finished configuring itself, and the session can start processing capture requests.

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

Parameters

session
CameraCaptureSession

the successfully configured session instance

Attributes

Remarks

This method is called when the camera device has finished configuring itself, and the session can start processing capture requests.

If there are capture requests already queued with the session, they will start processing once this callback is invoked, and the session will call #onActive right after this callback is invoked.

If no capture requests have been submitted, then the session will invoke #onReady right after this callback.

If the camera device configuration fails, then #onConfigureFailed will be invoked instead of this callback.

Java documentation for android.hardware.camera2.CameraCaptureSession.StateCallback.onConfigured(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