Android.Hardware.Camera2.CameraDevice.CreateCaptureRequest Method

Syntax

[Android.Runtime.Register("createCaptureRequest", "(I)Landroid/hardware/camera2/CaptureRequest$Builder;", "GetCreateCaptureRequest_IHandler")]
public abstract CaptureRequest.Builder CreateCaptureRequest ([Android.Runtime.GeneratedEnum] CameraTemplate templateType)

Parameters

templateType
An enumeration selecting the use case for this request; one of the CameraDevice.TEMPLATE_ values.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the templateType is not in the list of supported templates.
Android.Hardware.Camera2.CameraAccessExceptionif the camera device is no longer connected or has encountered a fatal error
Java.Lang.IllegalStateExceptionif the camera device has been closed

Remarks

Create a NoType:android/hardware/camera2/CaptureRequest$Builder;Href=../../../../reference/android/hardware/camera2/CaptureRequest.Builder.html for new capture requests, initialized with template for a 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.

[Android Documentation]

Requirements

Namespace: Android.Hardware.Camera2
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0