Freigeben über


SessionConfiguration Constructors

Definition

Overloads

SessionConfiguration(Int32, IList<OutputConfiguration>)

Create a new SessionConfiguration with sessionType and output configurations.

SessionConfiguration(Int32, IList<OutputConfiguration>, IExecutor, CameraCaptureSession+StateCallback)

Create a new SessionConfiguration.

SessionConfiguration(Int32, IList<OutputConfiguration>)

Create a new SessionConfiguration with sessionType and output configurations.

[Android.Runtime.Register(".ctor", "(ILjava/util/List;)V", "", ApiSince=35)]
public SessionConfiguration (int sessionType, System.Collections.Generic.IList<Android.Hardware.Camera2.Params.OutputConfiguration> outputs);
[<Android.Runtime.Register(".ctor", "(ILjava/util/List;)V", "", ApiSince=35)>]
new Android.Hardware.Camera2.Params.SessionConfiguration : int * System.Collections.Generic.IList<Android.Hardware.Camera2.Params.OutputConfiguration> -> Android.Hardware.Camera2.Params.SessionConfiguration

Parameters

sessionType
Int32

The session type.

outputs
IList<OutputConfiguration>

A list of output configurations for the capture session.

Attributes

Remarks

Create a new SessionConfiguration with sessionType and output configurations.

The SessionConfiguration objects created by this constructor can be used by CameraDeviceSetup.isSessionConfigurationSupported and CameraDeviceSetup.getSessionCharacteristics to query a camera device's feature combination support and session specific characteristics. For the SessionConfiguration object to be used to create a capture session, #setStateCallback must be called to specify the state callback function, and any incomplete OutputConfigurations must be completed via OutputConfiguration#addSurface or OutputConfiguration#setSurfacesForMultiResolutionOutput as appropriate.

Java documentation for android.hardware.camera2.params.SessionConfiguration.SessionConfiguration(int, java.util.List<android.hardware.camera2.params.OutputConfiguration>).

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

SessionConfiguration(Int32, IList<OutputConfiguration>, IExecutor, CameraCaptureSession+StateCallback)

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