SingleImageProxyBundle

@RequiresApi(21) class SingleImageProxyBundle : ImageProxyBundle
kotlin.Any
   ↳ androidx.camera.core.impl.SingleImageProxyBundle

An ImageProxyBundle that contains a single ImageProxy.

Summary

Public constructors
SingleImageProxyBundle(@NonNull imageProxy: ImageProxy, @NonNull tagBundleKey: String)

Create an ImageProxyBundle from a single ImageProxy using a tag's value from the ImageProxy as the captureId.

Public methods
Unit

Close the ImageProxy that has been wrapped by the bundle.

MutableList<Int!>

ListenableFuture<ImageProxy!>
getImageProxy(captureId: Int)

Public constructors

SingleImageProxyBundle

SingleImageProxyBundle(
    @NonNull imageProxy: ImageProxy,
    @NonNull tagBundleKey: String)

Create an ImageProxyBundle from a single ImageProxy using a tag's value from the ImageProxy as the captureId. The tagBundleKey is used to query from a TagBundle. It needs to be one of the keys that are in the ImageInfo's TagBundle.

Exceptions
IllegalArgumentException if the ImageProxy doesn't contain a tag

Public methods

close

fun close(): Unit

Close the ImageProxy that has been wrapped by the bundle.

getCaptureIds

@NonNull fun getCaptureIds(): MutableList<Int!>

getImageProxy

@NonNull fun getImageProxy(captureId: Int): ListenableFuture<ImageProxy!>