我在Kotlin编写的Android应用程序中使用Retrofit 2来调用API。 我调用看起来如下: val time = measureTimeMillis {
val call = geocodingApi.searchByName("Berlin")
call.enqueue(object : Callback<GeocodingResponse> {
o
我们正在使用retrofit2进行网络调用并获取我们的数据。 参照此链接 https://square.github.io/retrofit/2.x/retrofit/index.html?retrofit2/Callback.html Callback methods are executed using the Retrofit callback executor. When none is