FileDocCategorySizeDatePackage
PhotoManager.javaAPI DocAndroid 5.1 API1880Thu Mar 12 22:22:50 GMT 2015com.android.ex.chips

PhotoManager

public interface PhotoManager
Used by the {@link com.android.ex.chips.BaseRecipientAdapter} to handle fetching photos from external sources and caching them for faster lookup later.

Fields Summary
public static final int
PHOTO_CACHE_SIZE
The number of photos cached in this Adapter.
Constructors Summary
Methods Summary
public voidpopulatePhotoBytesAsync(RecipientEntry entry, com.android.ex.chips.PhotoManager$PhotoManagerCallback callback)
Sets the {@link com.android.ex.chips.RecipientEntry}'s photo bytes. If the photo bytes are cached, this action happens immediately. Otherwise, the work to fetch the photo bytes is performed asynchronously before setting the value on the UI thread.

If the photo bytes were fetched asynchronously, {@link PhotoManagerCallback#onPhotoBytesAsynchronouslyPopulated()} is called. This method is not called if the photo bytes have been cached previously (because no asynchronous work was performed). In that case, {@link PhotoManagerCallback#onPhotoBytesPopulated()} is called.