BokehImageCaptureExtender

public class BokehImageCaptureExtender
extends Object

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


Loads the OEM extension implementation for bokeh effect type.

Summary

Public methods

static BokehImageCaptureExtender create(ImageCaptureConfig.Builder builder)

Creates a new instance of the bokeh extender.

void enableExtension()

Enables the derived image capture extension feature.

boolean isExtensionAvailable()

Indicates whether extension function can support with ImageCaptureConfig.Builder

Inherited methods

Public methods

create

public static BokehImageCaptureExtender create (ImageCaptureConfig.Builder builder)

Creates a new instance of the bokeh extender.

Parameters
builder ImageCaptureConfig.Builder: Builder that will be used to create the configurations for the ImageCapture.

Returns
BokehImageCaptureExtender

enableExtension

public void enableExtension ()

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

public boolean isExtensionAvailable ()

Indicates whether extension function can support with ImageCaptureConfig.Builder

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