Language

SessionConfiguration コンストラクター

定義

オーバーロード

Name 説明
SessionConfiguration(Int32, IList<OutputConfiguration>)

sessionType と出力構成を使用して新しい SessionConfiguration を作成します。

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

新しい SessionConfiguration を作成します。

SessionConfiguration(Int32, IList<OutputConfiguration>)

sessionType と出力構成を使用して新しい SessionConfiguration を作成します。

[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

パラメーター

sessionType
Int32

セッションの種類。

outputs
IList<OutputConfiguration>

キャプチャ セッションの出力構成の一覧。

属性

注釈

sessionType と出力構成を使用して新しい SessionConfiguration を作成します。

このコンストラクターによって作成された SessionConfiguration オブジェクトは、カメラ デバイスの機能の組み合わせのサポートとセッション固有の特性を照会するために、 CameraDeviceSetup#isSessionConfigurationSupported および CameraDeviceSetup#getSessionCharacteristics で使用できます。 SessionConfiguration オブジェクトを使用してキャプチャ セッションを作成するには、状態コールバック関数を指定するために #setStateCallback を呼び出す必要があります。不完全な OutputConfiguration は、必要に応じて OutputConfiguration#addSurface または OutputConfiguration#setSurfacesForMultiResolutionOutput を使用して完了する必要があります。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

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

新しい 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

パラメーター

sessionType
Int32

セッションの種類。

outputs
IList<OutputConfiguration>

キャプチャ セッションの出力構成の一覧。

executor
IExecutor

コールバックの呼び出しに使用する必要がある Executor。 一般に、カメラ操作はメイン (UI) スレッドでは実行しないことをお勧めします。

cb
CameraCaptureSession.StateCallback

状態コールバック インターフェイスの実装。

属性

注釈

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象