Asynchronous (1) 썸네일형 리스트형 [Android] Retrofit 2.0 사용 방법 (Java, Kotlin) - 2. Call 동기, 비동기 1. 시작하기 (이전 포스팅) 이번 포스팅은 Retrofit의 Call을 이용하여 실제 통신을 하는 방법에 대해서 포스팅하겠습니다. 많이 쓰고, 간단한 방법인것 같습니다. 동기와 비동기 통신 두가지 방법이 있습니다. 간단한 만큼 Java와 Kotlin 두가지 다 보여드릴게요 1. 초기화 [Java] 1 2 3 4 5 6 7 public static final Retrofit retrofit = new Retrofit.Builder() .baseUrl("https://api.twitch.tv/") .addConverterFactory(GsonConverterFactory.create()) .build(); final TwitchService twitchService = retrofit.create(Twit.. 이전 1 다음