SingleImageProxyBundle
Kotlin
|Java
@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 |
Public methods | |
---|---|
Unit |
close() Close the |
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
getCaptureIds
@NonNull fun getCaptureIds(): MutableList<Int!>
getImageProxy
@NonNull fun getImageProxy(captureId: Int): ListenableFuture<ImageProxy!>