ExtensionsErrorListener

public interface ExtensionsErrorListener

androidx.camera.extensions.ExtensionsErrorListener


This interface is deprecated.
Currently, this interface is only used to monitor whether a Preview or ImageCapture is lacking when enabling extension modes. CameraX will automatically add an extra Preview or ImageCapture to make the extension functions work well. After that, no error will be reported via this interface.

Listener called when any extensions error occurs.

Summary

Nested classes

enum ExtensionsErrorListener.ExtensionsErrorCode

Types of error when extensions function is enabled. 

Public methods

abstract void onError(ExtensionsErrorListener.ExtensionsErrorCode errorCode)

This will be called when any extensions error occurs.

Public methods

onError

public abstract void onError (ExtensionsErrorListener.ExtensionsErrorCode errorCode)

This will be called when any extensions error occurs.

Parameters
errorCode ExtensionsErrorListener.ExtensionsErrorCode: error code in ExtensionsErrorListener.ExtensionsErrorCode