Retrofit Tutorial — Cancel Requests

preview_player
Показать описание
In this video, you'll learn how to cancel ongoing Retrofit requests.

Read the full tutorial for easy code copy&pasting here:

Start to watch 20+ Retrofit videos in our playlist here (beginning with our getting started):

----------------------------------------

Our book on Retrofit is available on leanpub:

----------------------------------------

Checkout 350+ technical in-depth tutorials:

Subscribe for two new videos every week:

----------------------------------------

Follow us on social media to get updates on new content:

----------------------------------------
Рекомендации по теме
Комментарии
Автор

Thank you !
You are the best, keep doing videos on Retrofit !

pierreracine
Автор

Again thanks for the beautiful tutorial.
Can you please make a video about how to retry a request few times onFailure.

saqibmasood
Автор

Hello!! Thanks for your awesome videos!!.. I'd like to ask you about something I came across recently.. How can I retry requests when it fails in Retrofit! Like if I want to make a POST request to an API to let it know that the user had pressed the like button but it failed during to some reason (there was no Internet connection when the user pressed that button).. How can I retry that same request when the Internet gets back again? Keep up the awesome work you're doing

tahamalas
Автор

Hi, I have one query.
Suppose I have multiple request in single activity lets take example I am call 3api on same screen and I want to cancel request of all on activity pause how can I do that?

nirmalshethwala
Автор

hello sir, how u are getting call reference out side..??? how it is working for u

rudreshsp
Автор

how u accessing call inside onclick ..??? i thing u skipped something, sir plz help

rudreshsp
Автор

What is the use of RequestBody type in interface?

buzzminkyunghoon