Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best approach for using this library when using Retrofit and network is slow. #9

Open
amitsri20 opened this issue Jan 5, 2017 · 1 comment
Labels

Comments

@amitsri20
Copy link

Can you suggest what will be the best approach for using this library when data is being fetched using Retrofit and network may be slow?
Thank you

@pwittchen
Copy link
Owner

pwittchen commented Jan 6, 2017

Hi,

Thank you for creating this issue! This library is designed to be universal and it should be able to load any kind of data from any source. Right now, I don't have any samples with Retrofit. When I find some time, I'll prepare something. For now, you can take a look at my another app: SearchTwitter. I'm using this library there. Specifically here: https://github.com/pwittchen/SearchTwitter/blob/master/app/src/main/java/com/pwittchen/search/twitter/ui/MainActivity.java#L114. I'm using it to load more tweets, which have been searched. I'm not using Retrofit there, but I used Twitter4J library and wrapped API calls with RxJava Observables. In Retrofit, you can also use RxJava Observables and process of loading more data with Retrofit should look in a similar way like in this app excluding details related to your domain. The main difference will be replacing Observables wrapping Twitter4J API with Retrofit Observables.

Regards,
Piotr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants