다음을 통해 공유


CameraCaptureSession.SetRepeatingRequest Method

Definition

Request endlessly repeating capture of images by this capture session.

[Android.Runtime.Register("setRepeatingRequest", "(Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CameraCaptureSession$CaptureCallback;Landroid/os/Handler;)I", "GetSetRepeatingRequest_Landroid_hardware_camera2_CaptureRequest_Landroid_hardware_camera2_CameraCaptureSession_CaptureCallback_Landroid_os_Handler_Handler")]
public abstract int SetRepeatingRequest (Android.Hardware.Camera2.CaptureRequest request, Android.Hardware.Camera2.CameraCaptureSession.CaptureCallback? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("setRepeatingRequest", "(Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CameraCaptureSession$CaptureCallback;Landroid/os/Handler;)I", "GetSetRepeatingRequest_Landroid_hardware_camera2_CaptureRequest_Landroid_hardware_camera2_CameraCaptureSession_CaptureCallback_Landroid_os_Handler_Handler")>]
abstract member SetRepeatingRequest : Android.Hardware.Camera2.CaptureRequest * Android.Hardware.Camera2.CameraCaptureSession.CaptureCallback * Android.OS.Handler -> int

Parameters

request
CaptureRequest

the request to repeat indefinitely

listener
CameraCaptureSession.CaptureCallback

The callback object to notify every time the request finishes processing. If null, no metadata will be produced for this stream of requests, although image data will still be produced.

handler
Handler

the handler on which the listener should be invoked, or null to use the current thread's android.os.Looper looper.

Returns

int A unique capture sequence ID used by CaptureCallback#onCaptureSequenceCompleted.

Attributes

Exceptions

if the camera device is no longer connected or has encountered a fatal error

if this session is no longer active, either because the session was explicitly closed, a new session has been created or the camera device has been closed.

If the request references no Surfaces or references Surfaces that are not currently configured as outputs; or the request is a reprocess capture request; or the capture targets a Surface in the middle of being Prepare(Surface); or the handler is null, the listener is not null, and the calling thread has no looper; or no requests were passed in.

Remarks

Java documentation for android.hardware.camera2.CameraCaptureSession.setRepeatingRequest(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CaptureCallback, android.os.Handler).

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

See also

  • <xref:Android.Hardware.Camera2.CameraCaptureSession.Capture(Android.Hardware.Camera2.CaptureRequest%2c+.CaptureCallback%2c+.CaptureCallback)>
  • StopRepeating()
  • AbortCaptures()