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(int 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 (int imageCaptureError, 
                String message, 
                Throwable cause)

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

Parameters
imageCaptureError int: The type of error composed by CameraX

message String: The error message composed by CameraX

cause Throwable: The throwable from lower-layer error

onImageSaved

public abstract void onImageSaved (File file)

Called when an image has been successfully saved.

Parameters
file File: The file object which the image is saved to