CameraDevice.CreateCaptureRequest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateCaptureRequest(CameraTemplate) |
Create a |
CreateCaptureRequest(CameraTemplate, ICollection<String>) |
Create a |
CreateCaptureRequest(CameraTemplate)
Create a CaptureRequest.Builder
for new capture requests,
initialized with template for a target use case.
[Android.Runtime.Register("createCaptureRequest", "(I)Landroid/hardware/camera2/CaptureRequest$Builder;", "GetCreateCaptureRequest_IHandler")]
public abstract Android.Hardware.Camera2.CaptureRequest.Builder CreateCaptureRequest (Android.Hardware.Camera2.CameraTemplate templateType);
[<Android.Runtime.Register("createCaptureRequest", "(I)Landroid/hardware/camera2/CaptureRequest$Builder;", "GetCreateCaptureRequest_IHandler")>]
abstract member CreateCaptureRequest : Android.Hardware.Camera2.CameraTemplate -> Android.Hardware.Camera2.CaptureRequest.Builder
Parameters
- templateType
- CameraTemplate
An enumeration selecting the use case for this request. Not all template types are supported on every device. See the documentation for each template type for details.
Returns
a builder for a capture request, initialized with default settings for that template, and no output streams
- Attributes
Exceptions
if the templateType is not supported by this device.
if the camera device is no longer connected or has encountered a fatal error
if the camera device has been closed
Remarks
Java documentation for android.hardware.camera2.CameraDevice.createCaptureRequest(int)
.
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
CreateCaptureRequest(CameraTemplate, ICollection<String>)
Create a CaptureRequest.Builder
for new capture requests,
initialized with template for a target use case.
[Android.Runtime.Register("createCaptureRequest", "(ILjava/util/Set;)Landroid/hardware/camera2/CaptureRequest$Builder;", "GetCreateCaptureRequest_ILjava_util_Set_Handler", ApiSince=28)]
public virtual Android.Hardware.Camera2.CaptureRequest.Builder CreateCaptureRequest (Android.Hardware.Camera2.CameraTemplate templateType, System.Collections.Generic.ICollection<string>? physicalCameraIdSet);
[<Android.Runtime.Register("createCaptureRequest", "(ILjava/util/Set;)Landroid/hardware/camera2/CaptureRequest$Builder;", "GetCreateCaptureRequest_ILjava_util_Set_Handler", ApiSince=28)>]
abstract member CreateCaptureRequest : Android.Hardware.Camera2.CameraTemplate * System.Collections.Generic.ICollection<string> -> Android.Hardware.Camera2.CaptureRequest.Builder
override this.CreateCaptureRequest : Android.Hardware.Camera2.CameraTemplate * System.Collections.Generic.ICollection<string> -> Android.Hardware.Camera2.CaptureRequest.Builder
Parameters
- templateType
- CameraTemplate
An enumeration selecting the use case for this request. Not all template types are supported on every device. See the documentation for each template type for details.
- physicalCameraIdSet
- ICollection<String>
Returns
a builder for a capture request, initialized with default settings for that template, and no output streams
- Attributes
Remarks
Java documentation for android.hardware.camera2.CameraDevice.createCaptureRequest(int)
.
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.