Search in sources :

Example 11 with RequestListener

use of com.facebook.imagepipeline.listener.RequestListener in project fresco by facebook.

the class ZoomableApplication method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    FLog.setMinimumLoggingLevel(FLog.VERBOSE);
    Set<RequestListener> listeners = new HashSet<>();
    listeners.add(new RequestLoggingListener());
    ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this).setRequestListeners(listeners).build();
    Fresco.initialize(this, config);
}
Also used : RequestListener(com.facebook.imagepipeline.listener.RequestListener) ImagePipelineConfig(com.facebook.imagepipeline.core.ImagePipelineConfig) RequestLoggingListener(com.facebook.imagepipeline.listener.RequestLoggingListener) HashSet(java.util.HashSet)

Example 12 with RequestListener

use of com.facebook.imagepipeline.listener.RequestListener in project fresco by facebook.

the class AnimationApplication method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    FLog.setMinimumLoggingLevel(FLog.VERBOSE);
    Set<RequestListener> listeners = new HashSet<>();
    listeners.add(new RequestLoggingListener());
    ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this).setRequestListeners(listeners).build();
    Fresco.initialize(this, config);
}
Also used : RequestListener(com.facebook.imagepipeline.listener.RequestListener) ImagePipelineConfig(com.facebook.imagepipeline.core.ImagePipelineConfig) RequestLoggingListener(com.facebook.imagepipeline.listener.RequestLoggingListener) HashSet(java.util.HashSet)

Aggregations

RequestListener (com.facebook.imagepipeline.listener.RequestListener)12 RequestLoggingListener (com.facebook.imagepipeline.listener.RequestLoggingListener)9 HashSet (java.util.HashSet)9 ImagePipelineConfig (com.facebook.imagepipeline.core.ImagePipelineConfig)8 DraweeConfig (com.facebook.drawee.backends.pipeline.DraweeConfig)2 ForwardingRequestListener (com.facebook.imagepipeline.listener.ForwardingRequestListener)2 SettableProducerContext (com.facebook.imagepipeline.producers.SettableProducerContext)2 ImageRequest (com.facebook.imagepipeline.request.ImageRequest)2 CancellationException (java.util.concurrent.CancellationException)2 DiskCacheConfig (com.facebook.cache.disk.DiskCacheConfig)1 Supplier (com.facebook.common.internal.Supplier)1 MemoryTrimType (com.facebook.common.memory.MemoryTrimType)1 MemoryTrimmable (com.facebook.common.memory.MemoryTrimmable)1 MemoryTrimmableRegistry (com.facebook.common.memory.MemoryTrimmableRegistry)1 NoOpMemoryTrimmableRegistry (com.facebook.common.memory.NoOpMemoryTrimmableRegistry)1 CloseableReference (com.facebook.common.references.CloseableReference)1 PipelineDraweeControllerBuilder (com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilder)1 ShowcaseMediaIdExtractor (com.facebook.fresco.samples.showcase.imagepipeline.ShowcaseMediaIdExtractor)1 OkHttpNetworkFetcher (com.facebook.imagepipeline.backends.okhttp3.OkHttpNetworkFetcher)1 MemoryCacheParams (com.facebook.imagepipeline.cache.MemoryCacheParams)1