ImageCaptureExtender

abstract class ImageCaptureExtender
kotlin.Any
   ↳ androidx.camera.extensions.ImageCaptureExtender

Class for using an OEM provided extension on image capture.

Summary

Public constructors

Class for using an OEM provided extension on image capture.

Public methods

open Unit

Enables the derived image capture extension feature.

open Boolean

Indicates whether extension function can support with ImageCaptureConfig.Builder

Public constructors

<init>

ImageCaptureExtender()

Class for using an OEM provided extension on image capture.

Public methods

enableExtension

open fun enableExtension(): Unit

Enables the derived image capture extension feature.

Image capture extension has dependence on preview extension. A PREVIEW_EXTENSION_REQUIRED error will be thrown if corresponding preview extension is not enabled together.

isExtensionAvailable

open fun isExtensionAvailable(): Boolean

Indicates whether extension function can support with ImageCaptureConfig.Builder

Return
Boolean: True if the specific extension function is supported for the camera device.