일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 알고리즘 자바
- Android Navigation
- 프로그래머스 알고리즘
- Kotlin FCM
- OkHttp Interceptor
- 66챌린지
- DataBinding
- 안드로이드 fcm
- Kotlin
- android recyclerview
- Android Jetpack
- WebView
- 영어독립365
- Android Interceptor
- Android WebView
- Android ProgressBar
- Android 12 대응
- Android
- MVP Architecture
- 카카오 알고리즘
- 안드로이드 갤러리 접근
- 안드로이드
- scope function
- 안드로이드 카카오 로그인
- Android ViewPager2
- 습관만들기
- 영어공부
- Java
- Android 12
- Android DataBinding
- Today
- Total
목록android retrofit (2)
Developer Geek
Retrofit Singleton Retrofit2 in Kotlin 개요 모바일에서 HTTP API 통신을 할 때 사용하는 라이브러리이다. REST 기반의 웹서비스를 통해 JSON 구조를 쉽게 가져오고 업로드할 수 있다. HTTP API를 Interface로 구현할 수 있다. interface GitHubService.. devgeek.tistory.com Singleton Class in Kotlin 개요 앱에서 딱 한번만 생성되고 전역에서 사용할 객체가 필요하다면 우린 Singleton Pattern을 사용하면 된다. Singleton Pattern 은 해당 클래스에서 오직 하나의 객체만을 사용하도록 제한하는 것이다. devgeek.tistory.com 왜 Retrofit을 Singletone으로?..
Retrofit Configuration Retrofit is the class through which your API interfaces are turned into callable objects. By default, Retrofit will give you sane defaults for your platform but it allows for customization. @Headers 아래와 같은 형식으로 요청에 필수적인 값들을 Header에 담을 수 있다. BookService.kt @Headers( "Key-1: Value-1", "Key-2: Value-2", ..., "Key-N: Value-N" ) @GET("/books") fun getBooks(): Call Programmatica..