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

ImageProxyBundle

public interface ImageProxyBundle

androidx.camera.core.ImageProxyBundle


A set of ImageProxy which are mapped an identifier.

Summary

Public methods

abstract List<Integer> getCaptureIds()

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

abstract ListenableFuture<ImageProxy> getImageProxy(int captureId)

Get a ListenableFuture for a ImageProxy.

Public methods

getCaptureIds

public abstract List<Integer> getCaptureIds ()

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

Returns
List<Integer>

getImageProxy

public abstract ListenableFuture<ImageProxy> getImageProxy (int captureId)

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.

Returns
ListenableFuture<ImageProxy> If the id does not exist for the bundle, then the ListenableFuture will contain an IllegalArgumentException.