1. 首页
  2. 数据库
  3. 其它
  4. Android代码 retrofit2 synchronous adapter

Android代码 retrofit2 synchronous adapter

上传者: 2021-04-19 07:40:40上传 ZIP文件 82.49KB 热度 24次
Retrofit 2 Synchronous Adapter A synchronous CallAdapter.Factory implementation for Retrofit 2. This project brings Retrofit 1's synchronous usage to Retrofit 2. Usage // Setup retrofit Retrofit retrofit = new Retrofit.Builder() .baseUrl("https://api.example.com") .addCallAdapterFactory(SynchronousCallAdapterFactory.create()) .build(); // Create your service interface Service { @GET("/") ApiResponse response(); // Return type directly @GET("/") Response responseApi(
下载地址
用户评论