CameraCaptureSession.StateCallback.OnActive(CameraCaptureSession) Method

Definition

This method is called when the session starts actively processing capture requests.

[Android.Runtime.Register("onActive", "(Landroid/hardware/camera2/CameraCaptureSession;)V", "GetOnActive_Landroid_hardware_camera2_CameraCaptureSession_Handler")]
public virtual void OnActive (Android.Hardware.Camera2.CameraCaptureSession session);
[<Android.Runtime.Register("onActive", "(Landroid/hardware/camera2/CameraCaptureSession;)V", "GetOnActive_Landroid_hardware_camera2_CameraCaptureSession_Handler")>]
abstract member OnActive : Android.Hardware.Camera2.CameraCaptureSession -> unit
override this.OnActive : Android.Hardware.Camera2.CameraCaptureSession -> unit

Parameters

session
CameraCaptureSession

the session returned by #onConfigured

Attributes

Remarks

This method is called when the session starts actively processing capture requests.

If capture requests are submitted prior to #onConfigured being called, then the session will start processing those requests immediately after the callback, and this method will be immediately called after #onConfigured.

If the session runs out of capture requests to process and calls #onReady, then this callback will be invoked again once new requests are submitted for capture.

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