iambaljeet / CancellingRetrofitRequests

Project to demonstrate multiple API calls and cancelling previous API calls in both Kotlin & Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CancellingRetrofitRequests

Android app showing usage of retrofit for fetching data and making multiple requests at same time while cancelling all previous requests and accepting only current/last request's response. Also showing use of retrofit with kotlin coroutine.

Code in this project is written in both Java & Kotlin. So anyone having experience in any of the language can see their relative code.

To run Java code go to manifest file and change default activity to reflect one in 'java' directory and to run kotlin's code change directory to kotlin.

alt text

About

Project to demonstrate multiple API calls and cancelling previous API calls in both Kotlin & Java

License:MIT License


Languages

Language:Java 63.3%Language:Kotlin 36.7%