PreviewExtender

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

Class for using an OEM provided extension on preview.

Summary

Public constructors

Class for using an OEM provided extension on preview.

Public methods

open Unit

Enables the derived preview extension feature.

open Boolean

Indicates whether extension function can support with PreviewConfig.Builder

Public constructors

<init>

PreviewExtender()

Class for using an OEM provided extension on preview.

Public methods

enableExtension

open fun enableExtension(): Unit

Enables the derived preview extension feature.

Preview extension has dependence on image capture extension. A IMAGE_CAPTURE_EXTENSION_REQUIRED error will be thrown if corresponding image capture extension is not enabled together.

isExtensionAvailable

open fun isExtensionAvailable(): Boolean

Indicates whether extension function can support with PreviewConfig.Builder

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