OnImageSavedListener

interface OnImageSavedListener
androidx.camera.core.ImageCapture.OnImageSavedListener

Listener containing callbacks for image file I/O events.

Summary

Public methods

abstract Unit
onError(@NonNull imageCaptureError: ImageCapture.ImageCaptureError, @NonNull message: String, @Nullable cause: Throwable?)

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

abstract Unit
onImageSaved(@NonNull file: File)

Called when an image has been successfully saved.

Public methods

onError

abstract fun onError(@NonNull imageCaptureError: ImageCapture.ImageCaptureError, @NonNull message: String, @Nullable cause: Throwable?): Unit

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

onImageSaved

abstract fun onImageSaved(@NonNull file: File): Unit

Called when an image has been successfully saved.