次の方法で共有


CameraCaptureSession.UpdateOutputConfiguration(OutputConfiguration) Method

Definition

Update OutputConfiguration after configuration finalization see #finalizeOutputConfigurations.

[Android.Runtime.Register("updateOutputConfiguration", "(Landroid/hardware/camera2/params/OutputConfiguration;)V", "GetUpdateOutputConfiguration_Landroid_hardware_camera2_params_OutputConfiguration_Handler", ApiSince=28)]
public virtual void UpdateOutputConfiguration (Android.Hardware.Camera2.Params.OutputConfiguration? config);
[<Android.Runtime.Register("updateOutputConfiguration", "(Landroid/hardware/camera2/params/OutputConfiguration;)V", "GetUpdateOutputConfiguration_Landroid_hardware_camera2_params_OutputConfiguration_Handler", ApiSince=28)>]
abstract member UpdateOutputConfiguration : Android.Hardware.Camera2.Params.OutputConfiguration -> unit
override this.UpdateOutputConfiguration : Android.Hardware.Camera2.Params.OutputConfiguration -> unit

Parameters

config
OutputConfiguration

Modified output configuration.

Attributes

Remarks

Update OutputConfiguration after configuration finalization see #finalizeOutputConfigurations.

Any OutputConfiguration that has been modified via calls to OutputConfiguration#addSurface or OutputConfiguration#removeSurface must be updated. After the update call returns without throwing exceptions any newly added surfaces can be referenced in subsequent capture requests.

Surfaces that get removed must not be part of any active repeating or single/burst request or have any pending results. Consider updating any repeating requests first via #setRepeatingRequest or #setRepeatingBurst and then wait for the last frame number when the sequence completes CaptureCallback#onCaptureSequenceCompleted before calling updateOutputConfiguration to remove a previously active Surface.

Surfaces that get added must not be part of any other registered OutputConfiguration.

Java documentation for android.hardware.camera2.CameraCaptureSession.updateOutputConfiguration(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