
Introduction | Retrofit - GitHub Pages
The Retrofit class generates an implementation of the GitHubService interface.
retrofit2 (retrofit API) - GitHub Pages
Package retrofit2 Description Retrofit turns your REST API into a Java interface. public interface GitHubService { @GET("/users/{user}/repos") List<Repo> listRepos(@Path("user") String user); }
Retrofit (retrofit API) - GitHub Pages
Class Retrofit java.lang.Object retrofit2.Retrofit public final class Retrofit extends java.lang.Object
Configuration | Retrofit
Scalars (primitives, boxed, and String): com.squareup.retrofit2:converter-scalars Here’s an example of using the GsonConverterFactory class to generate an implementation of the …
Overview (retrofit API) - GitHub Pages
Overview Package Class Tree Deprecated Index HelpPrev Next Frames No Frames
retrofit2.http (retrofit API) - GitHub Pages
Package retrofit2.http Annotations for interface methods to control the HTTP request behavior.
Query (retrofit API) - GitHub Pages
Body Call CallAdapter CallAdapter.Factory Callback Converter Converter.Factory DELETE Field FieldMap FormUrlEncoded GET HEAD Header HeaderMap Headers HTTP HttpException …
Download | Retrofit
R8 / ProGuard If you are using R8 the shrinking and obfuscation rules are included automatically. ProGuard users must manually add the options from retrofit2.pro. You might also need rules …
GsonConverterFactory (gson API) - GitHub Pages
Return a new factory which streams serialization of request messages to bytes on the HTTP thread This is either the calling thread for Call.execute(), or one of OkHttp's background …
Call (retrofit API) - GitHub Pages
Calls may be executed synchronously with execute(), or asynchronously with enqueue(retrofit2.Callback<T>). In either case the call can be canceled at any time with cancel().