Language

CameraExtensionCharacteristics.IsExtensionSupported(Int32) Method

Definition

Checks if a given camera extension is available for a specific camera device.

[Android.Runtime.Register("isExtensionSupported", "(I)Z", "", ApiSince=37)]
public bool IsExtensionSupported(int extensionType);
[<Android.Runtime.Register("isExtensionSupported", "(I)Z", "", ApiSince=37)>]
member this.IsExtensionSupported : int -> bool

Parameters

extensionType
Int32

The camera extension to query for.

Returns

true if the specified extension is supported for the given camera device, false otherwise.

Attributes

Remarks

Checks if a given camera extension is available for a specific camera device.

An extension may not be available on all devices. Even if a device supports extensions in general, a specific extension might not be implemented for a particular camera ID.

In contrast to getSupportedExtensions() this method can also be used to query the available device specific extension modes.

Android reference for android.hardware.camera2.CameraExtensionCharacteristics.isExtensionSupported.

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