π Retrofit Library π
Retrofit turns your REST API into a Java Interface π
Itβs an elegant solution for organizing API Calls in a project. The request method and relative URL are added with an Annotation , which makes code clean and simple.
With annotations, you can easily add a request body, manipulate the URL or headers and add query parameters. π₯
Adding a return type to a method will make it synchronous, while adding a Callback will allow it to finish asynchronously with success or failure. π°
For learn more about Retrofit see :
https://github.com/square/retrofit
http://square.github.io/retrofit/
#java #android #library
@ProgrammingTip
Post #190
1.18K