Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

ExperimentalGetImage

class ExperimentalGetImage
androidx.camera.core.ExperimentalGetImage

Denotes that the annotated method uses the experimental ImageProxy#getImage() method.

The getImage() method makes the assumptions that each ImageProxy is the sole owner of the underlying android.media.Image which might not be the case. In the case where the Image is shared by multiple ImageProxy, if the Image is closed then it will invalidate multiple ImageProxy without a way to clearly indicate this has occurred.

When using this method it would be recommended to not close the Image via Image#close(). Instead when the Image needs to be closed, ImageProxy#close() should be called on the ImageProxy from which the Image was retrieved.

Summary

Public constructors

Denotes that the annotated method uses the experimental ImageProxy#getImage() method.

Public constructors

<init>

ExperimentalGetImage()

Denotes that the annotated method uses the experimental ImageProxy#getImage() method.

The getImage() method makes the assumptions that each ImageProxy is the sole owner of the underlying android.media.Image which might not be the case. In the case where the Image is shared by multiple ImageProxy, if the Image is closed then it will invalidate multiple ImageProxy without a way to clearly indicate this has occurred.

When using this method it would be recommended to not close the Image via Image#close(). Instead when the Image needs to be closed, ImageProxy#close() should be called on the ImageProxy from which the Image was retrieved.