Langue

MultiResolutionImageReader.Builder.SetConcurrentOutputsEnabled Method

Definition

Turn on/off concurrent outputs for the internal ImageReaders.

[Android.Runtime.Register("setConcurrentOutputsEnabled", "(Z)Landroid/hardware/camera2/MultiResolutionImageReader$Builder;", "", ApiSince=37)]
public Android.Hardware.Camera2.MultiResolutionImageReader.Builder SetConcurrentOutputsEnabled(bool enable);
[<Android.Runtime.Register("setConcurrentOutputsEnabled", "(Z)Landroid/hardware/camera2/MultiResolutionImageReader$Builder;", "", ApiSince=37)>]
member this.SetConcurrentOutputsEnabled : bool -> Android.Hardware.Camera2.MultiResolutionImageReader.Builder

Parameters

enable
Boolean

Whether to allow the camera device to output concurrent readers for this MultiResolutionImageReader. If set to true for a device that doesn't support MultiResolutionImageReader concurrency, CameraDevice.createCaptureSession(SessionConfiguration) will fail.

Returns

the Builder instance with concurrency enabled. This value cannot be null.

Attributes

Remarks

Turn on/off concurrent outputs for the internal ImageReaders.

If MultiResolutionStreamConfigurationMap.isConcurrentReadersSupported returns true, the camera device supports concurrent outputs from multiple internal ImageReaders (for example, in scenarios where multiple sensors run at the same time). By default, concurrent outputs are disabled. The application can enable such mode by calling this function with true.

Android reference for android.hardware.camera2.MultiResolutionImageReader.Builder.setConcurrentOutputsEnabled.

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