The Android Developer Challenge is back! Submit your idea before December 2.

PreviewExtender

public abstract class PreviewExtender
extends Object

java.lang.Object
   ↳ androidx.camera.extensions.PreviewExtender


Class for using an OEM provided extension on preview.

Summary

Public constructors

PreviewExtender()

Public methods

void enableExtension()

Enables the derived preview extension feature.

boolean isExtensionAvailable()

Indicates whether extension function can support with PreviewConfig.Builder

Inherited methods

Public constructors

PreviewExtender

public PreviewExtender ()

Public methods

enableExtension

public void enableExtension ()

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

public boolean isExtensionAvailable ()

Indicates whether extension function can support with PreviewConfig.Builder

Returns
boolean True if the specific extension function is supported for the camera device.