facebook / facebook/fresco

How can I get the callback which means the image was really in diskCache

Open
#2,165 4 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Kotlin
Stars
17.2k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

I wanner use fresco do something about prefetch,it means without a SimpleDraweeView target, so it seems that PipelineDraweeControllerBuilder is useless. I use BaseDataSubscriber and its onNewResultImpl, but it just stand for memoryCache exist.

And I want to known the file exists in diskcache timely ,and Guaranteed . therefore, I can tell the webView the local file path and so on.

Question two:
` CloseableReference imageReference = dataSource.getResult();
final CloseableReference closeableReference = imageReference.clone();`
I use the above code in order to get the download inputStream , For the purpose of not affecting fresco cache logic,i use clone ,Fortunately ,It works, but I am worried about whether it affects memory.

Looking forward to your reply,thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.