Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

ImageCapture.OnImageSavedListener

public static interface ImageCapture.OnImageSavedListener

androidx.camera.core.ImageCapture.OnImageSavedListener


Listener containing callbacks for image file I/O events.

Summary

Public methods

abstract void onError(ImageCapture.ImageCaptureError imageCaptureError, String message, Throwable cause)

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

abstract void onImageSaved(File file)

Called when an image has been successfully saved.

Public methods

onError

public abstract void onError (ImageCapture.ImageCaptureError imageCaptureError, 
                String message, 
                Throwable cause)

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

Parameters
imageCaptureError ImageCapture.ImageCaptureError

message String

cause Throwable

onImageSaved

public abstract void onImageSaved (File file)

Called when an image has been successfully saved.

Parameters
file File