If I generate callback code in android studio for a retrofit2 enqueue call I get
object : Callback<Void?> {
override fun onResponse(call: Call<Void?>, response: Response<Void?>) {...}
...
}
The code in my retrofit2 interface is just Void
@POST("api/v1/users")
fun post(@Body body: UserRequestData): Call<Void>
Normally in Kotlin ? just means nullable, which makes sense for other types.
But what is this type Void? and how is it different from just Void ?