Freigeben über


CameraExtensionSession.ExtensionCaptureCallback.OnCaptureStarted Method

Definition

This method is called when the camera device has started capturing the initial input image of the device-specific extension post-process request.

[Android.Runtime.Register("onCaptureStarted", "(Landroid/hardware/camera2/CameraExtensionSession;Landroid/hardware/camera2/CaptureRequest;J)V", "GetOnCaptureStarted_Landroid_hardware_camera2_CameraExtensionSession_Landroid_hardware_camera2_CaptureRequest_JHandler", ApiSince=31)]
public virtual void OnCaptureStarted (Android.Hardware.Camera2.CameraExtensionSession session, Android.Hardware.Camera2.CaptureRequest request, long timestamp);
[<Android.Runtime.Register("onCaptureStarted", "(Landroid/hardware/camera2/CameraExtensionSession;Landroid/hardware/camera2/CaptureRequest;J)V", "GetOnCaptureStarted_Landroid_hardware_camera2_CameraExtensionSession_Landroid_hardware_camera2_CaptureRequest_JHandler", ApiSince=31)>]
abstract member OnCaptureStarted : Android.Hardware.Camera2.CameraExtensionSession * Android.Hardware.Camera2.CaptureRequest * int64 -> unit
override this.OnCaptureStarted : Android.Hardware.Camera2.CameraExtensionSession * Android.Hardware.Camera2.CaptureRequest * int64 -> unit

Parameters

session
CameraExtensionSession

the session received during StateCallback#onConfigured(CameraExtensionSession)

request
CaptureRequest

the request for the capture that just begun

timestamp
Int64

the timestamp at start of capture for repeating request or the timestamp at start of capture of the first frame in a multi-frame capture.

Attributes

Remarks

This method is called when the camera device has started capturing the initial input image of the device-specific extension post-process request.

This callback is invoked right as the capture of a frame begins, so it is the most appropriate time for playing a shutter sound, or triggering UI indicators of capture.

The request that is being used for this capture is provided, along with the actual timestamp for the start of exposure.

The default implementation of this method does nothing.

Java documentation for android.hardware.camera2.CameraExtensionSession.ExtensionCaptureCallback.onCaptureStarted(android.hardware.camera2.CameraExtensionSession, android.hardware.camera2.CaptureRequest, long).

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