Condividi tramite


SessionConfiguration Constructor

Definition

Create a new SessionConfiguration.

[Android.Runtime.Register(".ctor", "(ILjava/util/List;Ljava/util/concurrent/Executor;Landroid/hardware/camera2/CameraCaptureSession$StateCallback;)V", "", ApiSince=28)]
public SessionConfiguration (int sessionType, System.Collections.Generic.IList<Android.Hardware.Camera2.Params.OutputConfiguration> outputs, Java.Util.Concurrent.IExecutor executor, Android.Hardware.Camera2.CameraCaptureSession.StateCallback cb);
[<Android.Runtime.Register(".ctor", "(ILjava/util/List;Ljava/util/concurrent/Executor;Landroid/hardware/camera2/CameraCaptureSession$StateCallback;)V", "", ApiSince=28)>]
new Android.Hardware.Camera2.Params.SessionConfiguration : int * System.Collections.Generic.IList<Android.Hardware.Camera2.Params.OutputConfiguration> * Java.Util.Concurrent.IExecutor * Android.Hardware.Camera2.CameraCaptureSession.StateCallback -> Android.Hardware.Camera2.Params.SessionConfiguration

Parameters

sessionType
Int32

The session type.

outputs
IList<OutputConfiguration>

A list of output configurations for the capture session.

executor
IExecutor

The executor which should be used to invoke the callback. In general it is recommended that camera operations are not done on the main (UI) thread.

cb
CameraCaptureSession.StateCallback

A state callback interface implementation.

Attributes

Remarks

Java documentation for android.hardware.camera2.params.SessionConfiguration.SessionConfiguration(int, java.util.List, java.util.concurrent.Executor, android.hardware.camera2.StateCallback).

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