public abstract class

BaseBooleanSubscriber

extends Object
implements DataSubscriber<T>
java.lang.Object
   ↳ com.facebook.datasource.BaseBooleanSubscriber

Class Overview

Base implementation of DataSubscriber that ensures that the data source is closed when the subscriber has finished with it.

Sample usage:

 
 imagePipeline.isInDiskCache(
 uri,
 new BaseBooleanSubscriber() {
   public void onNewResultImpl(boolean isFound) {
     // caller's code here
   }
 });
 
 

Summary

Public Constructors
BaseBooleanSubscriber()
Public Methods
void onCancellation(DataSource<Boolean> dataSource)
void onFailure(DataSource<Boolean> dataSource)
void onNewResult(DataSource<Boolean> dataSource)
void onProgressUpdate(DataSource<Boolean> dataSource)
Protected Methods
abstract void onFailureImpl(DataSource<Boolean> dataSource)
abstract void onNewResultImpl(boolean isFoundInDisk)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.datasource.DataSubscriber

Public Constructors

public BaseBooleanSubscriber ()

Public Methods

public void onCancellation (DataSource<Boolean> dataSource)

public void onFailure (DataSource<Boolean> dataSource)

public void onNewResult (DataSource<Boolean> dataSource)

public void onProgressUpdate (DataSource<Boolean> dataSource)

Protected Methods

protected abstract void onFailureImpl (DataSource<Boolean> dataSource)

protected abstract void onNewResultImpl (boolean isFoundInDisk)