Google is committed to advancing racial equity for Black communities. See how.

ImageCapture.OnImageSavedCallback

public static interface ImageCapture.OnImageSavedCallback

androidx.camera.core.ImageCapture.OnImageSavedCallback


Listener containing callbacks for image file I/O events.

Summary

Public methods

abstract void onError(ImageCaptureException exception)

Called when an error occurs while attempting to save an image.

abstract void onImageSaved(ImageCapture.OutputFileResults outputFileResults)

Called when an image has been successfully saved.

Public methods

onError

public abstract void onError (ImageCaptureException exception)

Called when an error occurs while attempting to save an image.

Parameters
exception ImageCaptureException: An ImageCaptureException that contains the type of error, the error message and the throwable that caused it.

onImageSaved

public abstract void onImageSaved (ImageCapture.OutputFileResults outputFileResults)

Called when an image has been successfully saved.

Parameters
outputFileResults ImageCapture.OutputFileResults