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

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