Answer the question
In order to leave comments, you need to log in
How to give data to the user on the screen?
I use retrofit and do it so that now, upon successful receipt of data, I print the user's phone number in the console, how can I transfer it, for example, to a table and display it on the screen?
api.fetchAllusers().enqueue(object : Callback<List<User>>{
override fun onResponse(call: Call<List<User>>, response: Response<List<User>>) {
d("daniel", "onResponse: ${response.body()!![0].phone}")
}
override fun onFailure(call: Call<List<User>>, t: Throwable) {
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question