Language

CameraDevice.CameraDeviceSetup.CreateCaptureRequest(Int32) Method

Definition

Create a CaptureRequest.Builder for new capture requests, initialized with a template for target use case.

[Android.Runtime.Register("createCaptureRequest", "(I)Landroid/hardware/camera2/CaptureRequest$Builder;", "GetCreateCaptureRequest_IHandler", ApiSince=35)]
public abstract Android.Hardware.Camera2.CaptureRequest.Builder CreateCaptureRequest(int templateType);
[<Android.Runtime.Register("createCaptureRequest", "(I)Landroid/hardware/camera2/CaptureRequest$Builder;", "GetCreateCaptureRequest_IHandler", ApiSince=35)>]
abstract member CreateCaptureRequest : int -> Android.Hardware.Camera2.CaptureRequest.Builder

Parameters

templateType
Int32

The integer value of a CameraTemplate that selects the use case for this request. Not all template types are supported on every device. See the documentation for each template type for details. Value is one of the following: CameraDevice.TEMPLATE_PREVIEW; CameraDevice.TEMPLATE_STILL_CAPTURE; CameraDevice.TEMPLATE_RECORD; CameraDevice.TEMPLATE_VIDEO_SNAPSHOT; CameraDevice.TEMPLATE_ZERO_SHUTTER_LAG; CameraDevice.TEMPLATE_MANUAL

Returns

a builder for a capture request, initialized with default settings for that template, and no output streams. This value cannot be null.

Attributes

Remarks

Create a CaptureRequest.Builder for new capture requests, initialized with a template for target use case.

The settings are chosen to be the best options for the specific camera device, so it is not recommended to reuse the same request for a different camera device; create a builder specific for that device and template and override the settings as desired, instead.

Supported if the value of InfoSessionConfigurationQueryVersion is at least VanillaIceCream. If less than or equal to UpsideDownCake, this function throws an UnsupportedOperationException.

Android reference for android.hardware.camera2.CameraDevice.CameraDeviceSetup.createCaptureRequest.

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