public abstract class

BaseListBitmapDataSubscriber

extends BaseDataSubscriber<T>
java.lang.Object
   ↳ com.facebook.datasource.BaseDataSubscriber<T>
     ↳ com.facebook.imagepipeline.datasource.BaseListBitmapDataSubscriber

Class Overview

Implementation of DataSubscriber for cases where the client wants to access a list of bitmaps.

Sample usage: dataSource.subscribe( new BaseListBitmapDataSubscriber() {

Summary

Public Constructors
BaseListBitmapDataSubscriber()
Public Methods
void onNewResultImpl(DataSource<List<CloseableReference<CloseableImage>>> dataSource)
Protected Methods
abstract void onNewResultListImpl(List<Bitmap> bitmapList)
The bitmap list provided to this method is only guaranteed to be around for the lifespan of the method.
[Expand]
Inherited Methods
From class com.facebook.datasource.BaseDataSubscriber
From class java.lang.Object
From interface com.facebook.datasource.DataSubscriber

Public Constructors

public BaseListBitmapDataSubscriber ()

Public Methods

public void onNewResultImpl (DataSource<List<CloseableReference<CloseableImage>>> dataSource)

Protected Methods

protected abstract void onNewResultListImpl (List<Bitmap> bitmapList)

The bitmap list provided to this method is only guaranteed to be around for the lifespan of the method. This list can be null or the elements in it can be null.

The framework will free the bitmaps in the list from memory after this method has completed.