Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.

OnImageSavedCallback

interface OnImageSavedCallback
androidx.camera.core.ImageCapture.OnImageSavedCallback

Listener containing callbacks for image file I/O events.

Summary

Public methods
abstract Unit
onError(@NonNull exception: ImageCaptureException)

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

abstract Unit
onImageSaved(@NonNull outputFileResults: ImageCapture.OutputFileResults)

Called when an image has been successfully saved.

Public methods

onError

abstract fun onError(@NonNull exception: ImageCaptureException): Unit

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

abstract fun onImageSaved(@NonNull outputFileResults: ImageCapture.OutputFileResults): Unit

Called when an image has been successfully saved.