Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

ImageProxyBundle

interface ImageProxyBundle
androidx.camera.core.ImageProxyBundle

A set of ImageProxy which are mapped an identifier.

Summary

Public methods

abstract MutableList<Int!>

Returns the list of identifiers for the capture that produced the data in this bundle.

abstract ListenableFuture<ImageProxy!>
getImageProxy(captureId: Int)

Get a ListenableFuture for a ImageProxy.

Public methods

getCaptureIds

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

Returns the list of identifiers for the capture that produced the data in this bundle.

getImageProxy

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

Get a ListenableFuture for a ImageProxy.

The future will be satisfied when the ImageProxy for the given identifier has been generated.

Parameters
captureId Int: The id for the captures that generated the ImageProxy.
Return
ListenableFuture<ImageProxy!>: If the id does not exist for the bundle, then the ListenableFuture will contain an IllegalArgumentException.