Share via


CameraExtensionCharacteristics.GetAvailableCaptureResultKeys(Int32) Method

Definition

Returns the set of keys supported by a CaptureResult passed as an argument to CameraExtensionSession.ExtensionCaptureCallback#onCaptureResultAvailable.

[Android.Runtime.Register("getAvailableCaptureResultKeys", "(I)Ljava/util/Set;", "", ApiSince=33)]
public System.Collections.Generic.ICollection<Android.Hardware.Camera2.CaptureResult.Key> GetAvailableCaptureResultKeys (int extension);
[<Android.Runtime.Register("getAvailableCaptureResultKeys", "(I)Ljava/util/Set;", "", ApiSince=33)>]
member this.GetAvailableCaptureResultKeys : int -> System.Collections.Generic.ICollection<Android.Hardware.Camera2.CaptureResult.Key>

Parameters

extension
Int32

the extension type

Returns

non-modifiable set of capture result keys supported by camera extension session initialized with the given extension type.

Attributes

Remarks

Returns the set of keys supported by a CaptureResult passed as an argument to CameraExtensionSession.ExtensionCaptureCallback#onCaptureResultAvailable.

The set returned is not modifiable, so any attempts to modify it will throw a UnsupportedOperationException.

In case the set is empty, then the extension is not able to support any capture results and the CameraExtensionSession.ExtensionCaptureCallback#onCaptureResultAvailable callback will not be fired.

Java documentation for android.hardware.camera2.CameraExtensionCharacteristics.getAvailableCaptureResultKeys(int).

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