SessionConfiguration Constructors
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
SessionConfiguration(Int32, IList<OutputConfiguration>) |
Create a new |
SessionConfiguration(Int32, IList<OutputConfiguration>, IExecutor, CameraCaptureSession+StateCallback) |
Create a new |
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.
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.
A state callback interface implementation.
- Attributes
Remarks
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.